Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ArithmeticException.cs / 1 / ArithmeticException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArithmeticException ** ** ** Purpose: Exception class for bad arithmetic conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArithmeticException is thrown when overflow or underflow // occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ArithmeticException : SystemException { // Creates a new ArithmeticException with its message string set to // the empty string, its HRESULT set to COR_E_ARITHMETIC, // and its ExceptionInfo reference set to null. public ArithmeticException() : base(Environment.GetResourceString("Arg_ArithmeticException")) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } // Creates a new ArithmeticException with its message string set to // message, its HRESULT set to COR_E_ARITHMETIC, // and its ExceptionInfo reference set to null. // public ArithmeticException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } public ArithmeticException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } protected ArithmeticException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormViewInsertEventArgs.cs
- ByteStreamMessage.cs
- FactoryId.cs
- __Filters.cs
- CodeGenerator.cs
- XmlSchemaRedefine.cs
- NavigatingCancelEventArgs.cs
- RestHandlerFactory.cs
- ConsumerConnectionPoint.cs
- VideoDrawing.cs
- BeginStoryboard.cs
- OdbcException.cs
- TextParentUndoUnit.cs
- MutexSecurity.cs
- InvokeSchedule.cs
- PointCollection.cs
- _RequestCacheProtocol.cs
- AssociationTypeEmitter.cs
- AvTraceFormat.cs
- EventDescriptor.cs
- FixedHighlight.cs
- EtwTrace.cs
- Membership.cs
- WindowsListViewItemCheckBox.cs
- SqlProcedureAttribute.cs
- CodeAttributeDeclaration.cs
- ButtonBaseAdapter.cs
- PageRouteHandler.cs
- ColorMatrix.cs
- SecurityElement.cs
- SerializerDescriptor.cs
- RawStylusActions.cs
- OrderedDictionary.cs
- HttpsTransportBindingElement.cs
- BitmapCodecInfoInternal.cs
- InternalBase.cs
- MultipartContentParser.cs
- DesignerAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- SpellCheck.cs
- ListDictionaryInternal.cs
- DispatchChannelSink.cs
- AuthorizationContext.cs
- FirewallWrapper.cs
- SchemaConstraints.cs
- StoreContentChangedEventArgs.cs
- XamlFilter.cs
- SoapAttributeAttribute.cs
- FaultImportOptions.cs
- DataGridViewElement.cs
- MenuAutomationPeer.cs
- SingleConverter.cs
- LocationFactory.cs
- SkewTransform.cs
- ListDictionaryInternal.cs
- ComboBoxRenderer.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SessionIDManager.cs
- Selection.cs
- BrowserCapabilitiesFactory.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- DbParameterCollectionHelper.cs
- SimpleWebHandlerParser.cs
- InkPresenter.cs
- CodeGeneratorOptions.cs
- mongolianshape.cs
- RuntimeEnvironment.cs
- MeshGeometry3D.cs
- BitmapEffectrendercontext.cs
- ClipboardProcessor.cs
- DragCompletedEventArgs.cs
- updateconfighost.cs
- GlobalProxySelection.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ApplicationServiceManager.cs
- AttributeCollection.cs
- CapabilitiesPattern.cs
- SqlFlattener.cs
- WsdlBuildProvider.cs
- NativeMethods.cs
- CompensationTokenData.cs
- WebEventTraceProvider.cs
- GridItemCollection.cs
- Deflater.cs
- IndexingContentUnit.cs
- Menu.cs
- PermissionSet.cs
- DefaultDialogButtons.cs
- ConfigurationValidatorBase.cs
- NavigationWindowAutomationPeer.cs
- PersonalizationStateInfoCollection.cs
- documentsequencetextview.cs
- RadioButtonRenderer.cs
- PackageProperties.cs
- SQLUtility.cs
- PolyQuadraticBezierSegment.cs
- StateMachineWorkflowInstance.cs
- DbConvert.cs
- StringSorter.cs
- precedingsibling.cs