Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IdentityHolder.cs
- MetadataCollection.cs
- _CommandStream.cs
- FieldDescriptor.cs
- FrameworkElementFactoryMarkupObject.cs
- StringConcat.cs
- BinaryObjectInfo.cs
- CapiSymmetricAlgorithm.cs
- Zone.cs
- TypedTableBaseExtensions.cs
- RenderDataDrawingContext.cs
- GridProviderWrapper.cs
- MaskInputRejectedEventArgs.cs
- SmiRecordBuffer.cs
- HashCryptoHandle.cs
- XmlArrayItemAttribute.cs
- Glyph.cs
- SearchForVirtualItemEventArgs.cs
- X509KeyIdentifierClauseType.cs
- OrderByQueryOptionExpression.cs
- EventInfo.cs
- FilterRepeater.cs
- ConnectionPoint.cs
- MenuScrollingVisibilityConverter.cs
- PolicyLevel.cs
- CapabilitiesPattern.cs
- ContextDataSourceContextData.cs
- XmlFormatExtensionPrefixAttribute.cs
- ErrorHandler.cs
- ImageMap.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewRow.cs
- TrustVersion.cs
- MessageBuffer.cs
- RepeatBehavior.cs
- TextBoxAutomationPeer.cs
- DataGridViewDataErrorEventArgs.cs
- Timeline.cs
- MemoryPressure.cs
- GrammarBuilderPhrase.cs
- Matrix3DStack.cs
- CharacterHit.cs
- _NestedSingleAsyncResult.cs
- DrawItemEvent.cs
- ObjectStateEntry.cs
- AssemblyHash.cs
- RegistryConfigurationProvider.cs
- TableLayoutStyle.cs
- _Connection.cs
- TextParagraphProperties.cs
- _ConnectOverlappedAsyncResult.cs
- OutOfMemoryException.cs
- SecurityCriticalDataForSet.cs
- PassportAuthenticationEventArgs.cs
- VirtualizingPanel.cs
- PageThemeParser.cs
- RegistryKey.cs
- TextFindEngine.cs
- DecoderExceptionFallback.cs
- SliderAutomationPeer.cs
- ErrorEventArgs.cs
- SelectionHighlightInfo.cs
- TypeExtensions.cs
- GPRECT.cs
- Renderer.cs
- RuntimeWrappedException.cs
- StaticDataManager.cs
- UnsafeNativeMethods.cs
- DoubleAnimationUsingPath.cs
- CommentAction.cs
- XmlWrappingReader.cs
- RequestQueryParser.cs
- ImageSourceConverter.cs
- RawStylusInputReport.cs
- EventLogger.cs
- PropertyGeneratedEventArgs.cs
- XmlAttribute.cs
- XmlReflectionImporter.cs
- SqlExpressionNullability.cs
- ValuePatternIdentifiers.cs
- _NtlmClient.cs
- PeerInputChannel.cs
- SamlAssertion.cs
- WebPartEditorApplyVerb.cs
- SqlConnectionHelper.cs
- MemoryFailPoint.cs
- CompoundFileStreamReference.cs
- ServiceDiscoveryElement.cs
- FunctionMappingTranslator.cs
- OutputScope.cs
- OpacityConverter.cs
- OdbcStatementHandle.cs
- TrackingWorkflowEventArgs.cs
- Int32EqualityComparer.cs
- PolyLineSegment.cs
- CompiledRegexRunnerFactory.cs
- CalloutQueueItem.cs
- Span.cs
- figurelengthconverter.cs
- WebPartZoneCollection.cs