Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CurrencyWrapper() [2/2]

System.Runtime.InteropServices.CurrencyWrapper.CurrencyWrapper ( object obj)
inline

Definition at line 12 of file CurrencyWrapper.cs.

13 {
14 if (!(obj is decimal))
15 {
16 throw new ArgumentException(SR.Arg_MustBeDecimal, "obj");
17 }
18 WrappedObject = (decimal)obj;
19 }

References System.SR.Arg_MustBeDecimal, System.obj, and System.Runtime.InteropServices.CurrencyWrapper.WrappedObject.