Implement StringToCoTaskMem{Ansi,Uni} (bug 58102).
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / CurrencyWrapper.cs
1 //
2 // System.Runtime.InteropServices.CurrencyWrapper.cs
3 //
4 // Author:
5 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7
8 using System;
9
10 namespace System.Runtime.InteropServices
11 {
12         public sealed class CurrencyWrapper
13         {
14                 Decimal currency;
15
16                 public CurrencyWrapper (decimal obj)
17                 {
18                         currency = obj;
19                 }
20
21                 public CurrencyWrapper (object obj)
22                 {
23                         if (obj.GetType() != typeof(Decimal))
24                                 throw new ArgumentException ("obj has to be a Decimal type");
25                         currency = (Decimal)obj;
26                 }
27
28                 public decimal WrappedObject {
29                         get { return currency; }
30                 }
31         }
32 }