Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / DivideByZeroException.cs / 1305376 / DivideByZeroException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: DivideByZeroException ** ** ** Purpose: Exception class for bad arithmetic conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class DivideByZeroException : ArithmeticException { public DivideByZeroException() : base(Environment.GetResourceString("Arg_DivideByZero")) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } public DivideByZeroException(String message) : base(message) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } public DivideByZeroException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } [System.Security.SecuritySafeCritical] // auto-generated protected DivideByZeroException(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: DivideByZeroException ** ** ** Purpose: Exception class for bad arithmetic conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class DivideByZeroException : ArithmeticException { public DivideByZeroException() : base(Environment.GetResourceString("Arg_DivideByZero")) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } public DivideByZeroException(String message) : base(message) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } public DivideByZeroException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DIVIDEBYZERO); } [System.Security.SecuritySafeCritical] // auto-generated protected DivideByZeroException(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
- UnhandledExceptionEventArgs.cs
- PropertyIdentifier.cs
- ElementInit.cs
- DispatcherOperation.cs
- ImageMetadata.cs
- SapiRecoContext.cs
- DataGridViewCell.cs
- WindowsBrush.cs
- DbConnectionPoolGroupProviderInfo.cs
- TransactionInterop.cs
- Switch.cs
- CodeGenerator.cs
- ProcessMessagesAsyncResult.cs
- CollaborationHelperFunctions.cs
- EntityDataSourceContextCreatedEventArgs.cs
- WindowsHyperlink.cs
- ExtendedPropertyCollection.cs
- ContentDefinition.cs
- DiagnosticTrace.cs
- Int64.cs
- SHA256CryptoServiceProvider.cs
- AbstractExpressions.cs
- XMLUtil.cs
- LinkLabel.cs
- ClientSettingsSection.cs
- DataGridRow.cs
- ExpressionBuilderContext.cs
- ObjectTag.cs
- PointCollectionValueSerializer.cs
- EventSetter.cs
- RelationshipEndCollection.cs
- HandlerBase.cs
- RenderContext.cs
- JpegBitmapEncoder.cs
- ColorConverter.cs
- DataGridViewAccessibleObject.cs
- M3DUtil.cs
- SessionStateUtil.cs
- CompilerInfo.cs
- NetworkInterface.cs
- SelectionChangedEventArgs.cs
- PageAction.cs
- Slider.cs
- ManagedFilter.cs
- Socket.cs
- SyntaxCheck.cs
- InsufficientExecutionStackException.cs
- InsufficientExecutionStackException.cs
- CustomCategoryAttribute.cs
- DataControlLinkButton.cs
- QueryAsyncResult.cs
- Events.cs
- AssociatedControlConverter.cs
- EmissiveMaterial.cs
- SQLByte.cs
- XmlNamespaceManager.cs
- CanonicalFontFamilyReference.cs
- EventListener.cs
- WinInet.cs
- TableHeaderCell.cs
- SettingsBase.cs
- SqlCachedBuffer.cs
- WebEventCodes.cs
- PropagationProtocolsTracing.cs
- Viewport3DAutomationPeer.cs
- DnsEndPoint.cs
- ColumnMapVisitor.cs
- ErrorProvider.cs
- BindingContext.cs
- SqlUtil.cs
- SafeNativeMethods.cs
- HtmlControl.cs
- CFStream.cs
- ControlsConfig.cs
- PropertyMapper.cs
- RuntimeArgumentHandle.cs
- XsdValidatingReader.cs
- WorkflowDispatchContext.cs
- DataError.cs
- BinaryWriter.cs
- OptimalBreakSession.cs
- StateChangeEvent.cs
- Vars.cs
- SiteMapHierarchicalDataSourceView.cs
- Socket.cs
- Avt.cs
- SoapIncludeAttribute.cs
- CommonObjectSecurity.cs
- InheritanceAttribute.cs
- RouteValueExpressionBuilder.cs
- HtmlInputButton.cs
- TextEditorCharacters.cs
- Dynamic.cs
- DataGridRow.cs
- UserControlCodeDomTreeGenerator.cs
- DataSourceXmlSerializer.cs
- DoubleLinkList.cs
- WizardSideBarListControlItemEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- XmlTypeAttribute.cs