Avro C#
|
Represents a big decimal. More...
Public Member Functions | |
AvroDecimal (double value) | |
Initializes a new instance of the AvroDecimal class from a given double. More... | |
AvroDecimal (float value) | |
Initializes a new instance of the AvroDecimal class from a given float. More... | |
AvroDecimal (decimal value) | |
Initializes a new instance of the AvroDecimal class from a given decimal. More... | |
AvroDecimal (int value) | |
Initializes a new instance of the AvroDecimal class from a given int. More... | |
AvroDecimal (long value) | |
Initializes a new instance of the AvroDecimal class from a given long. More... | |
AvroDecimal (uint value) | |
Initializes a new instance of the AvroDecimal class from a given unsigned int. More... | |
AvroDecimal (ulong value) | |
Initializes a new instance of the AvroDecimal class from a given unsigned long. More... | |
AvroDecimal (BigInteger unscaledValue, int scale) | |
Initializes a new instance of the AvroDecimal class 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) |
static bool | operator!= (AvroDecimal left, AvroDecimal right) |
static bool | operator> (AvroDecimal left, AvroDecimal right) |
static bool | operator>= (AvroDecimal left, AvroDecimal right) |
static bool | operator< (AvroDecimal left, AvroDecimal right) |
static bool | operator<= (AvroDecimal left, AvroDecimal right) |
static bool | operator== (AvroDecimal left, decimal right) |
static bool | operator!= (AvroDecimal left, decimal right) |
static bool | operator> (AvroDecimal left, decimal right) |
static bool | operator>= (AvroDecimal left, decimal right) |
static bool | operator< (AvroDecimal left, decimal right) |
static bool | operator<= (AvroDecimal left, decimal right) |
static bool | operator== (decimal left, AvroDecimal right) |
static bool | operator!= (decimal left, AvroDecimal right) |
static bool | operator> (decimal left, AvroDecimal right) |
static bool | operator>= (decimal left, AvroDecimal right) |
static bool | operator< (decimal left, AvroDecimal right) |
static bool | operator<= (decimal left, AvroDecimal right) |
static | operator byte (AvroDecimal value) |
static byte | ToByte (AvroDecimal value) |
Creates a byte from a given AvroDecimal. More... | |
static | operator sbyte (AvroDecimal value) |
static sbyte | ToSByte (AvroDecimal value) |
Creates a signed byte from a given AvroDecimal. More... | |
static | operator short (AvroDecimal value) |
static short | ToInt16 (AvroDecimal value) |
Creates a short from a given AvroDecimal. More... | |
static | operator int (AvroDecimal value) |
static int | ToInt32 (AvroDecimal value) |
Creates an int from a given AvroDecimal. More... | |
static | operator long (AvroDecimal value) |
static long | ToInt64 (AvroDecimal value) |
Creates a long from a given AvroDecimal. More... | |
static | operator ushort (AvroDecimal value) |
static ushort | ToUInt16 (AvroDecimal value) |
Creates an unsigned short from a given AvroDecimal. More... | |
static | operator uint (AvroDecimal value) |
static uint | ToUInt32 (AvroDecimal value) |
Creates an unsigned int from a given AvroDecimal. More... | |
static | operator ulong (AvroDecimal value) |
static ulong | ToUInt64 (AvroDecimal value) |
Creates an unsigned long from a given AvroDecimal. More... | |
static | operator float (AvroDecimal value) |
static float | ToSingle (AvroDecimal value) |
Creates a double from a given AvroDecimal. More... | |
static | operator double (AvroDecimal value) |
static double | ToDouble (AvroDecimal value) |
Creates a double from a given AvroDecimal. More... | |
static | operator decimal (AvroDecimal value) |
static decimal | ToDecimal (AvroDecimal value) |
Creates a decimal from a given AvroDecimal. More... | |
static | operator BigInteger (AvroDecimal value) |
static BigInteger | ToBigInteger (AvroDecimal value) |
Creates a BigInteger from a given AvroDecimal. More... | |
static implicit | operator AvroDecimal (byte value) |
static implicit | operator AvroDecimal (sbyte value) |
static implicit | operator AvroDecimal (short value) |
static implicit | operator AvroDecimal (int value) |
static implicit | operator AvroDecimal (long value) |
static implicit | operator AvroDecimal (ushort value) |
static implicit | operator AvroDecimal (uint value) |
static implicit | operator AvroDecimal (ulong value) |
static implicit | operator AvroDecimal (float value) |
static implicit | operator AvroDecimal (double value) |
static implicit | operator AvroDecimal (decimal value) |
static implicit | operator AvroDecimal (BigInteger value) |
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 class from a given double.
value | The double value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given float.
value | The float value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given decimal.
value | The decimal value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given int.
value | The int value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given long.
value | The long value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given unsigned int.
value | The unsigned int value. |
|
inline |
Initializes a new instance of the AvroDecimal class from a given unsigned long.
value | The unsigned long value. |
|
inline |
Initializes a new instance of the AvroDecimal class 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. |
|
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 |
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. |
|
inline |
Converts the current AvroDecimal to a DateTime.
provider | The format provider. |
|
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 |
Creates a signed byte from a given AvroDecimal.
value | The AvroDecimal. |
|
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 | |
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. |
|
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 |
Creates an unsigned short from a given AvroDecimal.
value | The AvroDecimal. |
|
inline |
Converts the current AvroDecimal to an unsigned short.
provider | The format provider. |
|
inlinestatic |
Creates an unsigned int from a given AvroDecimal.
value | The AvroDecimal. |
|
inline |
Converts the current AvroDecimal to an unsigned int.
provider | The format provider. |
|
inlinestatic |
Creates an unsigned long from a given AvroDecimal.
value | The AvroDecimal. |
|
inline |
Converts the current AvroDecimal to an unsigned long.
provider | The format provider. |
|
get |
Gets the scale of the current AvroDecimal.
|
get |
Gets the unscaled integer value represented by the current AvroDecimal.