Search Results for

    Show / Hide Table of Contents

    Struct Numeric

    A numeric data type which accepts all kinds of numeric types

    Implements
    System.IComparable
    System.IConvertible
    System.IFormattable
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Simplic.Data
    Assembly: Simplic.CoreLib.dll
    Syntax
    public struct Numeric : IComparable, IConvertible, IFormattable

    Constructors

    | Improve this Doc View Source

    Numeric(Numeric)

    Initialize new Numeric

    Declaration
    public Numeric(Numeric value)
    Parameters
    Type Name Description
    Numeric value
    | Improve this Doc View Source

    Numeric(Double)

    Initialize new Numeric

    Declaration
    public Numeric(double value)
    Parameters
    Type Name Description
    System.Double value

    Methods

    | Improve this Doc View Source

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    GetTypeCode()

    Declaration
    public TypeCode GetTypeCode()
    Returns
    Type Description
    System.TypeCode
    | Improve this Doc View Source

    ToBoolean(IFormatProvider)

    Declaration
    public bool ToBoolean(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ToByte(IFormatProvider)

    Declaration
    public byte ToByte(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Byte
    | Improve this Doc View Source

    ToChar(IFormatProvider)

    Declaration
    public char ToChar(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Char
    | Improve this Doc View Source

    ToDateTime(IFormatProvider)

    Declaration
    public DateTime ToDateTime(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.DateTime
    | Improve this Doc View Source

    ToDecimal(IFormatProvider)

    Declaration
    public decimal ToDecimal(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Decimal
    | Improve this Doc View Source

    ToDouble(IFormatProvider)

    Declaration
    public double ToDouble(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    ToInt16(IFormatProvider)

    Declaration
    public short ToInt16(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    ToInt32(IFormatProvider)

    Declaration
    public int ToInt32(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToInt64(IFormatProvider)

    Declaration
    public long ToInt64(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    ToSByte(IFormatProvider)

    Declaration
    public sbyte ToSByte(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.SByte
    | Improve this Doc View Source

    ToSingle(IFormatProvider)

    Declaration
    public float ToSingle(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    | Improve this Doc View Source

    ToString(IFormatProvider)

    Declaration
    public string ToString(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ToString(String)

    Declaration
    public string ToString(string format)
    Parameters
    Type Name Description
    System.String format
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ToString(String, IFormatProvider)

    Declaration
    public string ToString(string format, IFormatProvider provider)
    Parameters
    Type Name Description
    System.String format
    System.IFormatProvider provider
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ToType(Type, IFormatProvider)

    Declaration
    public object ToType(Type conversionType, IFormatProvider provider)
    Parameters
    Type Name Description
    System.Type conversionType
    System.IFormatProvider provider
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    ToUInt16(IFormatProvider)

    Declaration
    public ushort ToUInt16(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.UInt16
    | Improve this Doc View Source

    ToUInt32(IFormatProvider)

    Declaration
    public uint ToUInt32(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.UInt32
    | Improve this Doc View Source

    ToUInt64(IFormatProvider)

    Declaration
    public ulong ToUInt64(IFormatProvider provider)
    Parameters
    Type Name Description
    System.IFormatProvider provider
    Returns
    Type Description
    System.UInt64

    Operators

    | Improve this Doc View Source

    Addition(Numeric, Numeric)

    Declaration
    public static Numeric operator +(Numeric d1, Numeric d2)
    Parameters
    Type Name Description
    Numeric d1
    Numeric d2
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    Division(Numeric, Numeric)

    Declaration
    public static Numeric operator /(Numeric d1, Numeric d2)
    Parameters
    Type Name Description
    Numeric d1
    Numeric d2
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    Equality(Numeric, Numeric)

    Declaration
    public static bool operator ==(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Explicit(Numeric to Double)

    Explicit conversion from PrecisedDecimal to double. Explicit: A cast operator is required.

    Declaration
    public static explicit operator double (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    Explicit(Numeric to Int32)

    Explicit conversion from PrecisedDecimal to int. Explicit: A cast operator is required.

    Declaration
    public static explicit operator int (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Explicit(Numeric to Int64)

    Explicit conversion from PrecisedDecimal to long. Explicit: A cast operator is required.

    Declaration
    public static explicit operator long (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    Explicit(Numeric to Single)

    Explicit conversion from PrecisedDecimal to float. Explicit: A cast operator is required.

    Declaration
    public static explicit operator float (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    Explicit(Numeric to UInt32)

    Explicit conversion from PrecisedDecimal to uint. Explicit: A cast operator is required.

    Declaration
    public static explicit operator uint (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Explicit(Numeric to UInt64)

    Explicit conversion from PrecisedDecimal to ulong. Explicit: A cast operator is required.

    Declaration
    public static explicit operator ulong (Numeric value)
    Parameters
    Type Name Description
    Numeric value
    Returns
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Explicit(Decimal to Numeric)

    Explicit conversion from PrecisedDecimal to decimal?. Explicit: A cast operator is required.

    Declaration
    public static explicit operator Numeric(decimal value)
    Parameters
    Type Name Description
    System.Decimal value
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    Explicit(Int32 to Numeric)

    Explicit conversion from PrecisedDecimal to int. Explicit: A cast operator is required.

    Declaration
    public static explicit operator Numeric(int value)
    Parameters
    Type Name Description
    System.Int32 value
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    GreaterThan(Numeric, Numeric)

    Declaration
    public static bool operator>(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GreaterThanOrEqual(Numeric, Numeric)

    Declaration
    public static bool operator >=(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Implicit(Double to Numeric)

    Implicit conversion from double to PrecisedDecimal. Implicit: No cast operator is required.

    Declaration
    public static implicit operator Numeric(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    Inequality(Numeric, Numeric)

    Declaration
    public static bool operator !=(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LessThan(Numeric, Numeric)

    Declaration
    public static bool operator <(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LessThanOrEqual(Numeric, Numeric)

    Declaration
    public static bool operator <=(Numeric c1, Numeric c2)
    Parameters
    Type Name Description
    Numeric c1
    Numeric c2
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Multiply(Numeric, Numeric)

    Declaration
    public static Numeric operator *(Numeric d1, Numeric d2)
    Parameters
    Type Name Description
    Numeric d1
    Numeric d2
    Returns
    Type Description
    Numeric
    | Improve this Doc View Source

    Subtraction(Numeric, Numeric)

    Declaration
    public static Numeric operator -(Numeric d1, Numeric d2)
    Parameters
    Type Name Description
    Numeric d1
    Numeric d2
    Returns
    Type Description
    Numeric

    Implements

    System.IComparable
    System.IConvertible
    System.IFormattable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx