Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompressedStack.cs
- FontDifferentiator.cs
- VersionPair.cs
- UnsafeMethods.cs
- PersonalizationProviderCollection.cs
- AnonymousIdentificationSection.cs
- DiscreteKeyFrames.cs
- UnitySerializationHolder.cs
- SessionEndedEventArgs.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TemplateComponentConnector.cs
- SByteConverter.cs
- FacetValues.cs
- WebBodyFormatMessageProperty.cs
- AsmxEndpointPickerExtension.cs
- Odbc32.cs
- ComponentResourceKey.cs
- TextViewElement.cs
- SHA1.cs
- _Events.cs
- DataColumnCollection.cs
- LazyTextWriterCreator.cs
- CachedCompositeFamily.cs
- Compress.cs
- ColorDialog.cs
- QueryOutputWriterV1.cs
- Clipboard.cs
- LinqExpressionNormalizer.cs
- CompilerState.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HeaderedItemsControl.cs
- SafeCryptoHandles.cs
- DataList.cs
- XmlSchemaImport.cs
- SqlCharStream.cs
- ComboBoxAutomationPeer.cs
- DynamicUpdateCommand.cs
- Int64.cs
- RuleProcessor.cs
- Adorner.cs
- JpegBitmapDecoder.cs
- SequentialUshortCollection.cs
- Stack.cs
- BoolExpr.cs
- TraceListener.cs
- DataBinder.cs
- TextServicesCompartment.cs
- AttachedAnnotation.cs
- TextTreeTextElementNode.cs
- EmbeddedMailObjectCollectionEditor.cs
- TagMapCollection.cs
- SmiTypedGetterSetter.cs
- bidPrivateBase.cs
- PackWebResponse.cs
- XmlArrayAttribute.cs
- RegexCompiler.cs
- ByteArrayHelperWithString.cs
- InvalidOleVariantTypeException.cs
- Configuration.cs
- PKCS1MaskGenerationMethod.cs
- XmlArrayItemAttributes.cs
- ChangesetResponse.cs
- BinaryParser.cs
- WebPartActionVerb.cs
- DropShadowBitmapEffect.cs
- EnumValAlphaComparer.cs
- DbConnectionStringBuilder.cs
- TextShapeableCharacters.cs
- X509AsymmetricSecurityKey.cs
- XmlHierarchyData.cs
- AutomationEventArgs.cs
- ExpressionBuilderContext.cs
- CloseSequenceResponse.cs
- SerialPort.cs
- SafeHandles.cs
- Pkcs9Attribute.cs
- ToolboxDataAttribute.cs
- OperationGenerator.cs
- DrawItemEvent.cs
- ExpressionBuilder.cs
- CompModSwitches.cs
- ReverseInheritProperty.cs
- Tablet.cs
- TagMapCollection.cs
- SQLDouble.cs
- Buffer.cs
- ResourceContainer.cs
- recordstate.cs
- BamlStream.cs
- DocumentPageHost.cs
- ButtonAutomationPeer.cs
- GenericRootAutomationPeer.cs
- Utils.cs
- DiagnosticsConfiguration.cs
- Type.cs
- ProviderBase.cs
- OleDbStruct.cs
- ObjectListGeneralPage.cs
- OlePropertyStructs.cs
- ParseHttpDate.cs