Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArithmeticException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected ArithmeticException(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
- XmlCodeExporter.cs
- CheckBoxBaseAdapter.cs
- ExpressionPrinter.cs
- MembershipValidatePasswordEventArgs.cs
- StateMachineSubscription.cs
- ListViewItem.cs
- XsdDateTime.cs
- ModelProperty.cs
- WebPartConnectionsDisconnectVerb.cs
- OutputScopeManager.cs
- MenuBase.cs
- XmlSchemaValidationException.cs
- UniqueIdentifierService.cs
- TextSchema.cs
- DatagramAdapter.cs
- WebSysDescriptionAttribute.cs
- ServiceRoute.cs
- HandlerMappingMemo.cs
- Path.cs
- SmtpReplyReader.cs
- Keywords.cs
- EncoderFallback.cs
- HtmlHead.cs
- PropertyRecord.cs
- _LocalDataStore.cs
- DeobfuscatingStream.cs
- BindStream.cs
- EventLogPermissionAttribute.cs
- DataStreamFromComStream.cs
- basevalidator.cs
- ModuleConfigurationInfo.cs
- InfoCard.cs
- PlatformCulture.cs
- InnerItemCollectionView.cs
- Rule.cs
- RefType.cs
- VisualStateGroup.cs
- loginstatus.cs
- ToolStripContentPanelDesigner.cs
- HandledEventArgs.cs
- XsltCompileContext.cs
- RecognizedPhrase.cs
- FormParameter.cs
- Currency.cs
- AssemblyCollection.cs
- SqlConnectionFactory.cs
- XPathArrayIterator.cs
- FormViewPageEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- AuthorizationSection.cs
- OutputWindow.cs
- DataGridAutoFormatDialog.cs
- HandledMouseEvent.cs
- DateTimeAutomationPeer.cs
- OleDbWrapper.cs
- CalendarSelectionChangedEventArgs.cs
- XmlEntity.cs
- CloseCollectionAsyncResult.cs
- TableCell.cs
- DesignerSerializationOptionsAttribute.cs
- EntityDataSourceWrapper.cs
- ExclusiveTcpTransportManager.cs
- EncoderNLS.cs
- SelectionProcessor.cs
- TypeLibConverter.cs
- BindingWorker.cs
- DataRecordObjectView.cs
- FileDialogCustomPlacesCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- LocatorPart.cs
- HttpException.cs
- GlyphRunDrawing.cs
- ExpressionNode.cs
- TreeView.cs
- SQLMoney.cs
- ShaderEffect.cs
- CompModSwitches.cs
- MouseGesture.cs
- KeyManager.cs
- XmlSchemaObject.cs
- Rethrow.cs
- TextEndOfParagraph.cs
- Point3DCollectionConverter.cs
- cookiecontainer.cs
- ActionNotSupportedException.cs
- SupportingTokenSpecification.cs
- ActivityLocationReferenceEnvironment.cs
- WebBrowserContainer.cs
- TypeNameConverter.cs
- QueryOutputWriter.cs
- DocumentationServerProtocol.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- TableRowGroup.cs
- IndicShape.cs
- SeparatorAutomationPeer.cs
- MaskInputRejectedEventArgs.cs
- ModuleBuilder.cs
- BoolExpression.cs
- HtmlMeta.cs
- ListItemCollection.cs