O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 method CurrencyWrapper(decimal obj);  
   public method CurrencyWrapper(object obj);  
// Public Instance Properties
   public field decimal WrappedObject{get; } 
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required