System.Currency

namespace System
{
[StructLayout(LayoutKind.Sequential,CharSet=CharSet.Ansi),Serializable]
internal struct Currency
{
internal long m_value;
public Currency(System.Decimal @value)
{
//.maxstack  8
//IL_0000:  ldarg.0
//IL_0001:  ldarg.1
//IL_0002:  call       valuetype System.Currency System.Decimal::ToCurrency(valuetype System.Decimal)
//IL_0007:  ldfld      int64 System.Currency::m_value
//IL_000c:  stfld      int64 System.Currency::m_value
//IL_0011:  ret
            this.m_value=System.Decimal.ToCurrency(@value);
}
internal Currency(long @value,int ignored)
{
//.maxstack  8
//IL_0000:  ldarg.0
//IL_0001:  ldarg.1
//IL_0002:  stfld      int64 System.Currency::m_value
//IL_0007:  ret
            this.m_value = @value;
}
public static System.Currency FromOACurrency(long cy)
{
//.maxstack  8
//IL_0000:  ldarg.0
//IL_0001:  ldc.i4.0
//IL_0002:  newobj     instance void System.Currency::.ctor(int64,
//int32)
//IL_0007:  ret
            return new System.Currency(cy,0);
}
public long ToOACurrency()
{
//.maxstack  8
//IL_0000:  ldarg.0
//IL_0001:  ldfld      int64 System.Currency::m_value
//IL_0006:  ret
            return this.m_value;
}
public static System.Decimal ToDecimal(System.Currency c)
{
//.maxstack  2
//.locals init (valuetype System.Decimal V_0)
//IL_0000:  ldc.i4.0
//IL_0001:  newobj     instance void System.Decimal::.ctor(int32)
//IL_0006:  stloc.0
//IL_0007:  ldloca.s   V_0
//IL_0009:  ldarg.0
//IL_000a:  call       void System.Currency::FCallToDecimal(valuetype System.Decimal&,
//valuetype System.Currency)
//IL_000f:  ldloc.0
//IL_0010:  ret
            decimal V_0;
            V_0 = new decimal(0);
            System.Currency.FCallToDecimal(ref V_0, c);
            return V_0;
}
[MethodImpl(MethodImplAttributes.InternalCall)]
private static void FCallToDecimal(ref System.Decimal result,System.Currency c)
{
}
}
}

posted @ 2010-08-28 21:12  Aegis  阅读(224)  评论(0编辑  收藏  举报