Search Results for

    Show / Hide Table of Contents

    Class Precision

    Used for storing decimal number type precision for scale

    Inheritance
    object
    Precision
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Utils.Database
    Assembly: LemonEdge.Utils.dll
    Syntax
    [DataContract]
    public class Precision

    Constructors

    Precision(short, short)

    Creates a new decimal percision of type (number, decimalPlaces)

    Declaration
    public Precision(short number, short decimalPlaces)
    Parameters
    Type Name Description
    short number

    The number of digits in the decimal

    short decimalPlaces

    The number of decimal places

    Properties

    DecimalPlaces

    The number to be used for decimal places

    Declaration
    public short DecimalPlaces { get; }
    Property Value
    Type Description
    short

    Number

    The number of digits in the decimal type

    Declaration
    public short Number { get; }
    Property Value
    Type Description
    short

    Methods

    ToString()

    Returns the precision in the format (Number, DecimalPlaces)

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The precision in the format (Number, DecimalPlaces)

    Overrides
    object.ToString()

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.