|
Avro C#
|
Represents a big decimal. More...
Public Member Functions | |
| AvroDecimal (double value) | |
| Initializes a new instance of the AvroDecimal struct from a given double. More... | |
| AvroDecimal (float value) | |
| Initializes a new instance of the AvroDecimal struct from a given float. More... | |
| AvroDecimal (decimal value) | |
| Initializes a new instance of the AvroDecimal struct from a given decimal. More... | |
| AvroDecimal (int value) | |
| Initializes a new instance of the AvroDecimal struct from a given int. More... | |
| AvroDecimal (long value) | |
| Initializes a new instance of the AvroDecimal struct from a given long. More... | |
| AvroDecimal (uint value) | |
| Initializes a new instance of the AvroDecimal struct from a given unsigned int. More... | |
| AvroDecimal (ulong value) | |
| Initializes a new instance of the AvroDecimal struct from a given unsigned long. More... | |
| AvroDecimal (BigInteger unscaledValue, int scale) | |
| Initializes a new instance of the AvroDecimal struct from a given BigInteger and a scale. More... | |
| override string | ToString () |
| Converts the current AvroDecimal to a string. More... | |
| T | ToType< T > () |
| Converts the numeric value of the current AvroDecimal to a given type. More... | |
| object IConvertible. | ToType (Type conversionType, IFormatProvider provider) |
| Converts the numeric value of the current AvroDecimal to a given type. More... | |
| override bool | Equals (object obj) |
| Returns a value that indicates whether the current AvroDecimal and a specified object have the same value. More... | |
| override int | GetHashCode () |
| Returns the hash code for the current AvroDecimal. More... | |
| TypeCode IConvertible. | GetTypeCode () |
| Returns the TypeCode for the current AvroDecimal. More... | |
| bool IConvertible. | ToBoolean (IFormatProvider provider) |
| Converts the current AvroDecimal to a boolean. More... | |
| byte IConvertible. | ToByte (IFormatProvider provider) |
| Converts the current AvroDecimal to a byte. More... | |
| char IConvertible. | ToChar (IFormatProvider provider) |
| Converts the current AvroDecimal to a char. More... | |
| DateTime IConvertible. | ToDateTime (IFormatProvider provider) |
| Converts the current AvroDecimal to a DateTime. More... | |
| decimal IConvertible. | ToDecimal (IFormatProvider provider) |
| Converts the current AvroDecimal to a decimal. More... | |
| double IConvertible. | ToDouble (IFormatProvider provider) |
| Converts the current AvroDecimal to a double. More... | |
| short IConvertible. | ToInt16 (IFormatProvider provider) |
| Converts the current AvroDecimal to a short. More... | |
| int IConvertible. | ToInt32 (IFormatProvider provider) |
| Converts the current AvroDecimal to an int. More... | |
| long IConvertible. | ToInt64 (IFormatProvider provider) |
| Converts the current AvroDecimal to a long. More... | |
| sbyte IConvertible. | ToSByte (IFormatProvider provider) |
| Converts the current AvroDecimal to a signed byte. More... | |
| float IConvertible. | ToSingle (IFormatProvider provider) |
| Converts the current AvroDecimal to a float. More... | |
| string IConvertible. | ToString (IFormatProvider provider) |
| Converts the current AvroDecimal to a string. More... | |
| ushort IConvertible. | ToUInt16 (IFormatProvider provider) |
| Converts the current AvroDecimal to an unsigned short. More... | |
| uint IConvertible. | ToUInt32 (IFormatProvider provider) |
| Converts the current AvroDecimal to an unsigned int. More... | |
| ulong IConvertible. | ToUInt64 (IFormatProvider provider) |
| Converts the current AvroDecimal to an unsigned long. More... | |
| string | ToString (string format, IFormatProvider formatProvider) |
| Converts the current AvroDecimal to a string. More... | |
| int | CompareTo (object obj) |
| Compares the value of the current AvroDecimal to the value of another object. More... | |
| int | CompareTo (AvroDecimal other) |
| Compares the value of the current AvroDecimal to the value of another AvroDecimal. More... | |
| bool | Equals (AvroDecimal other) |
| Returns a value that indicates whether the current AvroDecimal has the same value as another AvroDecimal. More... | |
Static Public Member Functions | |
| static bool | operator== (AvroDecimal left, AvroDecimal right) |
| Implements the operator ==. More... | |
| static bool | operator!= (AvroDecimal left, AvroDecimal right) |
| Implements the operator !=. More... | |
| static bool | operator> (AvroDecimal left, AvroDecimal right) |
| Implements the operator >. More... | |
| static bool | operator>= (AvroDecimal left, AvroDecimal right) |
| Implements the operator >=. More... | |
| static bool | operator< (AvroDecimal left, AvroDecimal right) |
| Implements the operator <. More... | |
| static bool | operator<= (AvroDecimal left, AvroDecimal right) |
| Implements the operator <=. More... | |
| static bool | operator== (AvroDecimal left, decimal right) |
| Implements the operator ==. More... | |
| static bool | operator!= (AvroDecimal left, decimal right) |
| Implements the operator !=. More... | |
| static bool | operator> (AvroDecimal left, decimal right) |
| Implements the operator >. More... | |
| static bool | operator>= (AvroDecimal left, decimal right) |
| Implements the operator >=. More... | |
| static bool | operator< (AvroDecimal left, decimal right) |
| Implements the operator <. More... | |
| static bool | operator<= (AvroDecimal left, decimal right) |
| Implements the operator <=. More... | |
| static bool | operator== (decimal left, AvroDecimal right) |
| Implements the operator ==. More... | |
| static bool | operator!= (decimal left, AvroDecimal right) |
| Implements the operator !=. More... | |
| static bool | operator> (decimal left, AvroDecimal right) |
| Implements the operator >. More... | |
| static bool | operator>= (decimal left, AvroDecimal right) |
| Implements the operator >=. More... | |
| static bool | operator< (decimal left, AvroDecimal right) |
| Implements the operator <. More... | |
| static bool | operator<= (decimal left, AvroDecimal right) |
| Implements the operator <=. More... | |
| static | operator byte (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to byte. More... | |
| static byte | ToByte (AvroDecimal value) |
| Creates a byte from a given AvroDecimal. More... | |
| static | operator sbyte (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to sbyte. More... | |
| static sbyte | ToSByte (AvroDecimal value) |
| Creates a sbyte from a given AvroDecimal. More... | |
| static | operator short (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to short. More... | |
| static short | ToInt16 (AvroDecimal value) |
| Creates a short from a given AvroDecimal. More... | |
| static | operator int (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to int. More... | |
| static int | ToInt32 (AvroDecimal value) |
| Creates an int from a given AvroDecimal. More... | |
| static | operator long (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to long. More... | |
| static long | ToInt64 (AvroDecimal value) |
| Creates a long from a given AvroDecimal. More... | |
| static | operator ushort (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to ushort. More... | |
| static ushort | ToUInt16 (AvroDecimal value) |
| Creates an ushort from a given AvroDecimal. More... | |
| static | operator uint (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to uint. More... | |
| static uint | ToUInt32 (AvroDecimal value) |
| Creates an uint from a given AvroDecimal. More... | |
| static | operator ulong (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to ulong. More... | |
| static ulong | ToUInt64 (AvroDecimal value) |
| Creates an ulong from a given AvroDecimal. More... | |
| static | operator float (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to float. More... | |
| static float | ToSingle (AvroDecimal value) |
| Creates a float from a given AvroDecimal. More... | |
| static | operator double (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to double. More... | |
| static double | ToDouble (AvroDecimal value) |
| Creates a double from a given AvroDecimal. More... | |
| static | operator decimal (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to decimal. More... | |
| static decimal | ToDecimal (AvroDecimal value) |
| Creates a decimal from a given AvroDecimal. More... | |
| static | operator BigInteger (AvroDecimal value) |
| Performs an explicit conversion from AvroDecimal to BigInteger. More... | |
| static BigInteger | ToBigInteger (AvroDecimal value) |
| Creates a BigInteger from a given AvroDecimal. More... | |
| static implicit | operator AvroDecimal (byte value) |
| Performs an implicit conversion from byte to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (sbyte value) |
| Performs an implicit conversion from sbyte to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (short value) |
| Performs an implicit conversion from short to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (int value) |
| Performs an implicit conversion from int to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (long value) |
| Performs an implicit conversion from long to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (ushort value) |
| Performs an implicit conversion from ushort to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (uint value) |
| Performs an implicit conversion from uint to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (ulong value) |
| Performs an implicit conversion from ulong to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (float value) |
| Performs an implicit conversion from float to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (double value) |
| Performs an implicit conversion from double to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (decimal value) |
| Performs an implicit conversion from decimal to AvroDecimal. More... | |
| static implicit | operator AvroDecimal (BigInteger value) |
| Performs an implicit conversion from BigInteger to AvroDecimal. More... | |
Properties | |
| BigInteger | UnscaledValue [get] |
| Gets the unscaled integer value represented by the current AvroDecimal. More... | |
| int | Scale [get] |
| Gets the scale of the current AvroDecimal. More... | |
Represents a big decimal.
|
inline |
Initializes a new instance of the AvroDecimal struct from a given double.
| value | The double value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given float.
| value | The float value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given decimal.
| value | The decimal value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given int.
| value | The int value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given long.
| value | The long value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given unsigned int.
| value | The unsigned int value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given unsigned long.
| value | The unsigned long value. |
|
inline |
Initializes a new instance of the AvroDecimal struct from a given BigInteger and a scale.
| unscaledValue | The double value. |
| scale | The scale. |
|
inline |
Compares the value of the current AvroDecimal to the value of another AvroDecimal.
| other | The AvroDecimal to compare. |
|
inline |
Compares the value of the current AvroDecimal to the value of another object.
| obj | The object to compare. |
| System.ArgumentException | Compare to object must be a BigDecimal - obj. |
|
inline |
Returns a value that indicates whether the current AvroDecimal has the same value as another AvroDecimal.
| other | The AvroDecimal to compare. |
|
inline |
Returns a value that indicates whether the current AvroDecimal and a specified object have the same value.
| obj | The object to compare. |
|
inline |
Returns the hash code for the current AvroDecimal.
|
inline |
Returns the TypeCode for the current AvroDecimal.
|
inlinestatic |
Performs an implicit conversion from BigInteger to AvroDecimal.
| value | The BigInteger. |
|
inlinestatic |
Performs an implicit conversion from byte to AvroDecimal.
| value | The byte byte. |
|
inlinestatic |
Performs an implicit conversion from decimal to AvroDecimal.
| value | The decimal. |
|
inlinestatic |
Performs an implicit conversion from double to AvroDecimal.
| value | The double. |
|
inlinestatic |
Performs an implicit conversion from float to AvroDecimal.
| value | The float. |
|
inlinestatic |
Performs an implicit conversion from int to AvroDecimal.
| value | The int. |
|
inlinestatic |
Performs an implicit conversion from long to AvroDecimal.
| value | The long. |
|
inlinestatic |
Performs an implicit conversion from sbyte to AvroDecimal.
| value | The sbyte. |
|
inlinestatic |
Performs an implicit conversion from short to AvroDecimal.
| value | The short. |
|
inlinestatic |
Performs an implicit conversion from uint to AvroDecimal.
| value | The uint. |
|
inlinestatic |
Performs an implicit conversion from ulong to AvroDecimal.
| value | The ulong. |
|
inlinestatic |
Performs an implicit conversion from ushort to AvroDecimal.
| value | The ushort. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to BigInteger.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to byte.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to decimal.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to double.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to float.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to int.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to long.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to sbyte.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to short.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to uint.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to ulong.
| value | The AvroDecimal. |
|
inlineexplicitstatic |
Performs an explicit conversion from AvroDecimal to ushort.
| value | The AvroDecimal. |
|
inlinestatic |
Implements the operator !=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator !=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator !=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator <=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator ==.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator ==.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator ==.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Implements the operator >=.
| left | The left. |
| right | The right. |
|
inlinestatic |
Creates a BigInteger from a given AvroDecimal.
| value | The AvroDecimal. |
|
inline |
Converts the current AvroDecimal to a boolean.
| provider | The format provider. |
|
inlinestatic |
|
inline |
|
inline |
Converts the current AvroDecimal to a char.
| provider | The format provider. |
| System.InvalidCastException | Cannot cast BigDecimal to Char. |
|
inline |
Converts the current AvroDecimal to a DateTime.
| provider | The format provider. |
| System.InvalidCastException | Cannot cast BigDecimal to DateTime. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to a decimal.
| provider | The format provider. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to a double.
| provider | The format provider. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to a short.
| provider | The format provider. |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to a signed byte.
| provider | The format provider. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to a float.
| provider | The format provider. |
|
inline |
Converts the current AvroDecimal to a string.
|
inline |
Converts the current AvroDecimal to a string.
| provider | The format provider. |
|
inline |
Converts the current AvroDecimal to a string.
| format | The format. |
| formatProvider | The format provider. |
|
inline |
Converts the numeric value of the current AvroDecimal to a given type.
| conversionType | The type to which the value of the current AvroDecimal should be converted. |
| provider | An System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
| System.OverflowException | The value {UnscaledValue} cannot fit into {conversionType.Name}. |
|
inline |
Converts the numeric value of the current AvroDecimal to a given type.
| T | The type to which the value of the current AvroDecimal should be converted. |
| T | : | struct |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to an unsigned short.
| provider | The format provider. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to an unsigned int.
| provider | The format provider. |
|
inlinestatic |
|
inline |
Converts the current AvroDecimal to an unsigned long.
| provider | The format provider. |
|
get |
Gets the scale of the current AvroDecimal.
The scale.
|
get |
Gets the unscaled integer value represented by the current AvroDecimal.
The unscaled value.
1.8.17