12 private double _offendingNumber;
20 : base(
Environment.GetResourceString(
"Arg_NotFiniteNumberException"))
22 _offendingNumber = 0.0;
23 SetErrorCode(-2146233048);
30 _offendingNumber = offendingNumber;
31 SetErrorCode(-2146233048);
39 _offendingNumber = 0.0;
40 SetErrorCode(-2146233048);
49 _offendingNumber = offendingNumber;
50 SetErrorCode(-2146233048);
57 : base(message, innerException)
59 SetErrorCode(-2146233048);
67 : base(message, innerException)
69 _offendingNumber = offendingNumber;
70 SetErrorCode(-2146233048);
79 _offendingNumber = info.GetInt32(
"OffendingNumber");
93 base.GetObjectData(info, context);
94 info.AddValue(
"OffendingNumber", _offendingNumber, typeof(
int));
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
NotFiniteNumberException(string message, double offendingNumber, Exception innerException)
Initializes a new instance of the T:System.NotFiniteNumberException class with a specified error mess...
double OffendingNumber
Gets the invalid number that is a positive infinity, a negative infinity, or Not-a-Number (NaN).
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
NotFiniteNumberException(string message)
Initializes a new instance of the T:System.NotFiniteNumberException class with a specified error mess...
NotFiniteNumberException(string message, double offendingNumber)
Initializes a new instance of the T:System.NotFiniteNumberException class with a specified error mess...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown when a floating-point value is positive infinity, negative infinity,...
NotFiniteNumberException(string message, Exception innerException)
Initializes a new instance of the T:System.NotFiniteNumberException class with a specified error mess...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
NotFiniteNumberException(double offendingNumber)
Initializes a new instance of the T:System.NotFiniteNumberException class with the invalid number.
NotFiniteNumberException()
Initializes a new instance of the T:System.NotFiniteNumberException class.
Specifies that the class can be serialized.
override void GetObjectData(SerializationInfo info, StreamingContext context)
Sets the T:System.Runtime.Serialization.SerializationInfo object with the invalid number and addition...
The exception that is thrown for errors in an arithmetic, casting, or conversion operation.
NotFiniteNumberException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.NotFiniteNumberException class with serialized data.