using System;
namespace System.Runtime.InteropServices
{
/// Wraps objects the marshaler should marshal as a VT_CY.
// Token: 0x02000306 RID: 774
[ComVisible(true)]
[Serializable]
public sealed class CurrencyWrapper
{
/// Initializes a new instance of the class with the Decimal to be wrapped and marshaled as type VT_CY.
/// The Decimal to be wrapped and marshaled as VT_CY.
// Token: 0x060021EA RID: 8682 RVA: 0x0007934C File Offset: 0x0007754C
public CurrencyWrapper(decimal obj)
{
this.currency = obj;
}
/// Initializes a new instance of the class with the object containing the Decimal to be wrapped and marshaled as type VT_CY.
/// The object containing the Decimal to be wrapped and marshaled as VT_CY.
/// The parameter is not a type.
// Token: 0x060021EB RID: 8683 RVA: 0x0007935C File Offset: 0x0007755C
public CurrencyWrapper(object obj)
{
if (obj.GetType() != typeof(decimal))
{
throw new ArgumentException("obj has to be a Decimal type");
}
this.currency = (decimal)obj;
}
/// Gets the wrapped object to be marshaled as type VT_CY.
/// The wrapped object to be marshaled as type VT_CY.
// Token: 0x17000648 RID: 1608
// (get) Token: 0x060021EC RID: 8684 RVA: 0x0007939C File Offset: 0x0007759C
public decimal WrappedObject
{
get
{
return this.currency;
}
}
// Token: 0x04000CF9 RID: 3321
private decimal currency;
}
}