This class is used to create a wrapper around a decimal value. Then, when you pass the newly created CurrencyWrapper to an unmanaged method, the object is marshaled as the VT_CURRENCY type. public sealed class CurrencyWrapper { // Public Constructors public CurrencyWrapper (decimal obj ); public CurrencyWrapper (object obj ); // Public Instance Properties public decimal WrappedObject {get; } } |