Name
CurrencyWrapper
Synopsis
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(decimalobj
); public CurrencyWrapper(objectobj
); // Public Instance Properties public decimal WrappedObject{get; } }
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.