103 return new decimal((
int)num, (
int)(num >> 32), 0,
isNegative, 4);
113 bool flag = num >= 0;
114 long num2 = num % 10;
118 num = ((!flag) ? (num - 1) : (num + 1));
145 return new SqlMoney(
new decimal(x));
148 public static explicit operator decimal(
SqlMoney x)
159 return ToDecimal().ToString(
"#0.00##",
null);
178 if (x.
_value == -922337203685477
L)
508 return _value.GetHashCode();
538 writer.WriteAttributeString(
"xsi",
"nil",
"http://www.w3.org/2001/XMLSchema-instance",
"true");
static Exception WrongType(Type got, Type expected)
static string ArithOverflowMessage
static bool ToBoolean(string s)
static string ToString(bool value)
static decimal ToDecimal(string s)
string? GetAttribute(string name)
virtual string ReadElementString()
void WriteXml(XmlWriter writer)
void ReadXml(XmlReader reader)
static readonly SqlBoolean Null
override string ToString()
static SqlMoney Divide(SqlMoney x, SqlMoney y)
static SqlBoolean operator>=(SqlMoney x, SqlMoney y)
static SqlBoolean Equals(SqlMoney x, SqlMoney y)
static SqlMoney Subtract(SqlMoney x, SqlMoney y)
static SqlBoolean operator>(SqlMoney x, SqlMoney y)
static SqlBoolean LessThan(SqlMoney x, SqlMoney y)
static SqlMoney Add(SqlMoney x, SqlMoney y)
static readonly SqlMoney Zero
static SqlBoolean GreaterThanOrEqual(SqlMoney x, SqlMoney y)
static SqlMoney operator+(SqlMoney x, SqlMoney y)
SqlMoney(long value, int ignored)
int CompareTo(SqlMoney value)
static SqlBoolean operator<=(SqlMoney x, SqlMoney y)
static readonly SqlMoney MinValue
static SqlBoolean GreaterThan(SqlMoney x, SqlMoney y)
override bool Equals([NotNullWhen(true)] object? value)
static SqlBoolean operator<(SqlMoney x, SqlMoney y)
override int GetHashCode()
static SqlMoney Parse(string s)
SqlBoolean ToSqlBoolean()
static SqlBoolean LessThanOrEqual(SqlMoney x, SqlMoney y)
static readonly SqlMoney MaxValue
static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
static readonly SqlMoney Null
static SqlBoolean NotEquals(SqlMoney x, SqlMoney y)
static SqlBoolean operator==(SqlMoney x, SqlMoney y)
static SqlMoney operator-(SqlMoney x)
static SqlMoney operator*(SqlMoney x, SqlMoney y)
static SqlMoney Multiply(SqlMoney x, SqlMoney y)
int CompareTo(object? value)
SqlDecimal ToSqlDecimal()
static SqlMoney operator/(SqlMoney x, SqlMoney y)
static SqlBoolean operator!=(SqlMoney x, SqlMoney y)