2 // System.Runtime.InteropServices.CurrencyWrapper.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
10 namespace System.Runtime.InteropServices
12 public sealed class CurrencyWrapper
16 public CurrencyWrapper (decimal obj)
21 public CurrencyWrapper (object obj)
23 if (obj.GetType() != typeof(Decimal))
24 throw new ArgumentException ("obj has to be a Decimal type");
25 currency = (Decimal)obj;
28 public decimal WrappedObject {
29 get { return currency; }