Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / NotFiniteNumberException.cs / 1 / NotFiniteNumberException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System { using System; using System.Runtime.Serialization; using System.Security.Permissions; [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); } protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context) { _offendingNumber = info.GetInt32("OffendingNumber"); } public double OffendingNumber { get { return _offendingNumber; } } [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } base.GetObjectData(info, context); info.AddValue("OffendingNumber", _offendingNumber, typeof(Int32)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System { using System; using System.Runtime.Serialization; using System.Security.Permissions; [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); } protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context) { _offendingNumber = info.GetInt32("OffendingNumber"); } public double OffendingNumber { get { return _offendingNumber; } } [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } 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
- Geometry3D.cs
- TreeNodeCollection.cs
- COAUTHINFO.cs
- XmlTextReaderImplHelpers.cs
- ConnectionManagementElementCollection.cs
- SerializationFieldInfo.cs
- CommonObjectSecurity.cs
- EntityDataSourceSelectingEventArgs.cs
- RtfNavigator.cs
- MetadataFile.cs
- DesignerAttribute.cs
- JournalEntry.cs
- LogLogRecordEnumerator.cs
- PasswordTextNavigator.cs
- AssemblyAssociatedContentFileAttribute.cs
- IdleTimeoutMonitor.cs
- EventLogQuery.cs
- DataGridViewTextBoxEditingControl.cs
- DoubleAnimationClockResource.cs
- ScaleTransform.cs
- DateRangeEvent.cs
- ConfigXmlAttribute.cs
- x509store.cs
- DocumentXmlWriter.cs
- PenCursorManager.cs
- DataGridViewImageCell.cs
- GatewayIPAddressInformationCollection.cs
- IisTraceListener.cs
- ProtocolElement.cs
- VisualStyleInformation.cs
- ContentDefinition.cs
- GiveFeedbackEventArgs.cs
- HexParser.cs
- SkewTransform.cs
- Base64Decoder.cs
- XPathScanner.cs
- Classification.cs
- ComEventsHelper.cs
- EntityStoreSchemaGenerator.cs
- ComponentDesigner.cs
- XPathMessageFilterElementCollection.cs
- BorderGapMaskConverter.cs
- SchemaConstraints.cs
- RangeBase.cs
- SerializeAbsoluteContext.cs
- WindowsAuthenticationEventArgs.cs
- RequestSecurityToken.cs
- VirtualizedCellInfoCollection.cs
- AttributeCollection.cs
- PriorityChain.cs
- EventKeyword.cs
- UpdateCompiler.cs
- LifetimeServices.cs
- LinkArea.cs
- DurationConverter.cs
- DataGridViewCellStyleEditor.cs
- PtsCache.cs
- ContextMarshalException.cs
- AuthorizationRuleCollection.cs
- EpmSourceTree.cs
- NestPullup.cs
- Style.cs
- ThrowHelper.cs
- ProcessMonitor.cs
- PresentationSource.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DrawingContextDrawingContextWalker.cs
- baseaxisquery.cs
- Comparer.cs
- XmlNodeList.cs
- Int32.cs
- X509ClientCertificateCredentialsElement.cs
- PresentationTraceSources.cs
- SafeSecurityHandles.cs
- VerticalAlignConverter.cs
- RtType.cs
- CustomErrorCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- HMACSHA1.cs
- DescendentsWalkerBase.cs
- HttpProtocolReflector.cs
- _AutoWebProxyScriptEngine.cs
- TextViewBase.cs
- DBParameter.cs
- ConstructorArgumentAttribute.cs
- MetadataItem.cs
- DummyDataSource.cs
- StringSource.cs
- ColorInterpolationModeValidation.cs
- ContainerUtilities.cs
- Popup.cs
- ArrayList.cs
- FormsAuthentication.cs
- Vector3DAnimationBase.cs
- XmlProcessingInstruction.cs
- SqlBuilder.cs
- StylusPointProperty.cs
- StringBlob.cs
- HttpProfileGroupBase.cs
- Stroke2.cs