|
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*=============================================================================
**
** Class: CurrencyWrapper.
**
**
** Purpose: Wrapper that is converted to a variant with VT_CURRENCY.
**
**
=============================================================================*/
namespace System.Runtime.InteropServices {
using System;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class CurrencyWrapper
{
public CurrencyWrapper(Decimal obj)
{
m_WrappedObject = obj;
}
public CurrencyWrapper(Object obj)
{
if (!(obj is Decimal))
throw new ArgumentException(Environment.GetResourceString("Arg_MustBeDecimal"), "obj");
m_WrappedObject = (Decimal)obj;
}
public Decimal WrappedObject
{
get
{
return m_WrappedObject;
}
}
private Decimal m_WrappedObject;
}
}
|