Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / OverflowException.cs / 1 / 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);
}
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);
}
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
- IDQuery.cs
- AdjustableArrowCap.cs
- DataGridViewCellCollection.cs
- ModuleElement.cs
- ConvertEvent.cs
- ElementHost.cs
- MetabaseServerConfig.cs
- InternalBase.cs
- baseaxisquery.cs
- TraceHandler.cs
- MatrixIndependentAnimationStorage.cs
- ZipIOExtraField.cs
- SoapSchemaExporter.cs
- UrlAuthorizationModule.cs
- GradientBrush.cs
- EncodingInfo.cs
- GenericXmlSecurityTokenAuthenticator.cs
- PipelineModuleStepContainer.cs
- InfoCardCryptoHelper.cs
- Size3D.cs
- ItemCheckedEvent.cs
- XPathExpr.cs
- DataRowComparer.cs
- HealthMonitoringSectionHelper.cs
- UniqueID.cs
- SystemIPv4InterfaceProperties.cs
- GraphicsState.cs
- DataServiceHostFactory.cs
- DynamicILGenerator.cs
- CodeDomConfigurationHandler.cs
- SamlNameIdentifierClaimResource.cs
- FreezableCollection.cs
- HtmlGenericControl.cs
- ImageDrawing.cs
- PeerNameResolver.cs
- SudsWriter.cs
- UrlPropertyAttribute.cs
- IdentityModelDictionary.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ColorConverter.cs
- FormsAuthenticationEventArgs.cs
- TableChangeProcessor.cs
- ToolboxItem.cs
- CopyNamespacesAction.cs
- GenerateScriptTypeAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- _SslState.cs
- NetNamedPipeSecurity.cs
- DataContractSerializerElement.cs
- ColorInterpolationModeValidation.cs
- HandlerBase.cs
- TypeHelpers.cs
- MappingModelBuildProvider.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SqlFacetAttribute.cs
- ValidationSummary.cs
- Ops.cs
- DataGridViewRowPostPaintEventArgs.cs
- AppSettingsSection.cs
- GetFileNameResult.cs
- GlyphRunDrawing.cs
- NopReturnReader.cs
- __Filters.cs
- DrawingDrawingContext.cs
- CodeTryCatchFinallyStatement.cs
- FontCollection.cs
- DynamicPropertyHolder.cs
- ContainerCodeDomSerializer.cs
- WebBrowserHelper.cs
- Style.cs
- RedistVersionInfo.cs
- IdleTimeoutMonitor.cs
- PublishLicense.cs
- RelationshipManager.cs
- PageTrueTypeFont.cs
- DebugTrace.cs
- HotSpotCollection.cs
- CellTreeNode.cs
- TreeViewEvent.cs
- DataMemberFieldEditor.cs
- externdll.cs
- DataTrigger.cs
- SystemResources.cs
- AvTraceFormat.cs
- Schema.cs
- IsolatedStorageFilePermission.cs
- PersianCalendar.cs
- SHA256.cs
- ListViewItemMouseHoverEvent.cs
- InvalidateEvent.cs
- BackgroundFormatInfo.cs
- Viewport3DVisual.cs
- SqlInternalConnectionSmi.cs
- Nodes.cs
- ObjectSelectorEditor.cs
- RuntimeWrappedException.cs
- WaitHandleCannotBeOpenedException.cs
- DifferencingCollection.cs
- TransformedBitmap.cs
- QueryPageSettingsEventArgs.cs