System.Currency.ToDecimal C# (CSharp) Méthode

ToDecimal() public static méthode

public static ToDecimal ( Currency c ) : Decimal
c Currency
Résultat Decimal
        public static Decimal ToDecimal(Currency c)
        {
            Decimal result = new Decimal ();
            FCallToDecimal (ref result, c);
            return result;
        }

Usage Example

        // Constructs a Decimal from a Currency value.
        //
        internal Decimal(Currency value)
        {
            Decimal temp = Currency.ToDecimal(value);

            this.lo    = temp.lo;
            this.mid   = temp.mid;
            this.hi    = temp.hi;
            this.flags = temp.flags;
        }
All Usage Examples Of System.Currency::ToDecimal