Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / OverflowException.cs / 1305376 / OverflowException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: OverflowException
**
**
** Purpose: Exception class for Arthimatic Overflows.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable]
public class OverflowException : ArithmeticException {
public OverflowException()
: base(Environment.GetResourceString("Arg_OverflowException")) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: OverflowException
**
**
** Purpose: Exception class for Arthimatic Overflows.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable]
public class OverflowException : ArithmeticException {
public OverflowException()
: base(Environment.GetResourceString("Arg_OverflowException")) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected OverflowException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PanelStyle.cs
- ChameleonKey.cs
- PrePrepareMethodAttribute.cs
- SerializationAttributes.cs
- SystemPens.cs
- SqlUdtInfo.cs
- ConfigurationElementProperty.cs
- PnrpPermission.cs
- ScalarOps.cs
- DynamicValueConverter.cs
- Types.cs
- CryptoApi.cs
- ProviderIncompatibleException.cs
- PolyBezierSegmentFigureLogic.cs
- ListBindingConverter.cs
- QuaternionIndependentAnimationStorage.cs
- SourceFilter.cs
- StrokeNodeEnumerator.cs
- PeerInvitationResponse.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- MinMaxParagraphWidth.cs
- ADConnectionHelper.cs
- SafeBitVector32.cs
- ObjectListGeneralPage.cs
- ViewBase.cs
- WrappedIUnknown.cs
- ObjectStateEntryDbDataRecord.cs
- ObjectConverter.cs
- CaseInsensitiveComparer.cs
- CodeBlockBuilder.cs
- DataServiceRequest.cs
- ValueExpressions.cs
- ObjectConverter.cs
- RuntimeWrappedException.cs
- Listbox.cs
- SecurityRuntime.cs
- NamespaceExpr.cs
- DoubleSumAggregationOperator.cs
- basemetadatamappingvisitor.cs
- JulianCalendar.cs
- PreloadedPackages.cs
- BooleanSwitch.cs
- TripleDES.cs
- RecordsAffectedEventArgs.cs
- ParsedAttributeCollection.cs
- ProxyWebPartManagerDesigner.cs
- ParseChildrenAsPropertiesAttribute.cs
- FlowDocumentScrollViewer.cs
- TileModeValidation.cs
- DeobfuscatingStream.cs
- SoapIncludeAttribute.cs
- ModelFunction.cs
- SettingsSavedEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- SessionIDManager.cs
- StorageEntityTypeMapping.cs
- MessageRpc.cs
- XmlSchemaImport.cs
- TextReader.cs
- LinkedResourceCollection.cs
- ObfuscationAttribute.cs
- UiaCoreTypesApi.cs
- DebugView.cs
- SynchronizationContext.cs
- DetailsViewUpdateEventArgs.cs
- Point3DConverter.cs
- ObjectStateFormatter.cs
- StrongNameIdentityPermission.cs
- AssemblyFilter.cs
- FormatConvertedBitmap.cs
- initElementDictionary.cs
- ChildrenQuery.cs
- PropertyBuilder.cs
- OutputCacheSection.cs
- MouseGestureConverter.cs
- EntityDataSourceState.cs
- StateChangeEvent.cs
- BamlRecords.cs
- DiscriminatorMap.cs
- DataAdapter.cs
- OSEnvironmentHelper.cs
- PasswordRecovery.cs
- XsltInput.cs
- MatrixTransform.cs
- BitmapScalingModeValidation.cs
- RuntimeResourceSet.cs
- ProtocolsConfiguration.cs
- MetadataCacheItem.cs
- CrossContextChannel.cs
- _ListenerRequestStream.cs
- SamlDoNotCacheCondition.cs
- DataGridColumnHeadersPresenter.cs
- SqlPersonalizationProvider.cs
- ProcessMessagesAsyncResult.cs
- TileModeValidation.cs
- WebPartMenu.cs
- DecoderReplacementFallback.cs
- TextModifierScope.cs
- ApplicationInterop.cs
- InputReport.cs