Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NotFiniteNumberException.cs / 1305376 / NotFiniteNumberException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System { using System; using System.Runtime.Serialization; using System.Security.Permissions; using System.Diagnostics.Contracts; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class NotFiniteNumberException : ArithmeticException { private double _offendingNumber; public NotFiniteNumberException() : base(Environment.GetResourceString("Arg_NotFiniteNumberException")) { _offendingNumber = 0; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(double offendingNumber) : base() { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message) : base(message) { _offendingNumber = 0; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, double offendingNumber) : base(message) { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, double offendingNumber, Exception innerException) : base(message, innerException) { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } [System.Security.SecuritySafeCritical] // auto-generated protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context) { _offendingNumber = info.GetInt32("OffendingNumber"); } public double OffendingNumber { get { return _offendingNumber; } } [System.Security.SecurityCritical] // auto-generated_required public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } Contract.EndContractBlock(); base.GetObjectData(info, context); info.AddValue("OffendingNumber", _offendingNumber, typeof(Int32)); } } } // 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
- ScrollBar.cs
- TemplateKeyConverter.cs
- SqlFacetAttribute.cs
- ToolStripDropTargetManager.cs
- FormsAuthentication.cs
- Int32AnimationUsingKeyFrames.cs
- XmlSchemaIdentityConstraint.cs
- WorkflowServiceNamespace.cs
- VerificationException.cs
- CommentEmitter.cs
- SynchronizationLockException.cs
- SiteMap.cs
- Matrix3DStack.cs
- DiscoveryEndpointElement.cs
- Property.cs
- RenderTargetBitmap.cs
- Verify.cs
- StringArrayConverter.cs
- MailMessageEventArgs.cs
- TreeNodeCollection.cs
- ProfileManager.cs
- SystemDiagnosticsSection.cs
- HWStack.cs
- HtmlImageAdapter.cs
- OdbcParameter.cs
- ImageBrush.cs
- Int32Animation.cs
- FixedSOMElement.cs
- ExeContext.cs
- KeyInfo.cs
- References.cs
- InputScopeAttribute.cs
- DataRowExtensions.cs
- AssemblyResolver.cs
- MenuAdapter.cs
- TemplateNameScope.cs
- NativeMethods.cs
- WebEvents.cs
- MatrixTransform.cs
- MachineKeyConverter.cs
- HtmlString.cs
- ReferenceTypeElement.cs
- SearchForVirtualItemEventArgs.cs
- CookieProtection.cs
- FontUnit.cs
- FrameworkElement.cs
- XPathConvert.cs
- ContentValidator.cs
- PrintingPermissionAttribute.cs
- BuildProviderAppliesToAttribute.cs
- TextRunTypographyProperties.cs
- SqlInternalConnectionTds.cs
- AttributeSetAction.cs
- ManifestSignatureInformation.cs
- ToolTipAutomationPeer.cs
- GeneralTransform3D.cs
- PaintValueEventArgs.cs
- TraceLevelStore.cs
- DBSchemaRow.cs
- Odbc32.cs
- ThreadStaticAttribute.cs
- SerializationUtilities.cs
- BuildProviderAppliesToAttribute.cs
- AstTree.cs
- MailDefinition.cs
- ScalarRestriction.cs
- DynamicValidatorEventArgs.cs
- DetailsViewInsertEventArgs.cs
- RuntimeArgumentHandle.cs
- LinkUtilities.cs
- GatewayIPAddressInformationCollection.cs
- Bits.cs
- HitTestParameters3D.cs
- EndpointAddress10.cs
- Formatter.cs
- SqlCacheDependencyDatabase.cs
- HwndKeyboardInputProvider.cs
- IInstanceContextProvider.cs
- MailBnfHelper.cs
- DictionaryItemsCollection.cs
- BrowserInteropHelper.cs
- StopStoryboard.cs
- BuildTopDownAttribute.cs
- GPRECTF.cs
- SqlProcedureAttribute.cs
- EdmFunctions.cs
- ArrayTypeMismatchException.cs
- ContentPlaceHolder.cs
- DataRowCollection.cs
- ChangeToolStripParentVerb.cs
- GrammarBuilderWildcard.cs
- HyperLinkColumn.cs
- ColorConvertedBitmap.cs
- CultureInfoConverter.cs
- BinaryObjectInfo.cs
- ExtensibleClassFactory.cs
- CodeNamespace.cs
- DataGridAddNewRow.cs
- WebRequestModuleElementCollection.cs
- TypeUtil.cs