Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CurrencyWrapper.cs
Go to the documentation of this file.
1
namespace
System.Runtime.InteropServices
;
2
3
public
sealed
class
CurrencyWrapper
4
{
5
public
decimal
WrappedObject
{
get
; }
6
7
public
CurrencyWrapper
(decimal
obj
)
8
{
9
WrappedObject
=
obj
;
10
}
11
12
public
CurrencyWrapper
(
object
obj
)
13
{
14
if
(!(
obj
is decimal))
15
{
16
throw
new
ArgumentException
(
SR
.
Arg_MustBeDecimal
,
"obj"
);
17
}
18
WrappedObject
= (decimal)
obj
;
19
}
20
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Runtime.InteropServices.CurrencyWrapper.CurrencyWrapper
CurrencyWrapper(object obj)
Definition
CurrencyWrapper.cs:12
System.Runtime.InteropServices.CurrencyWrapper.WrappedObject
decimal WrappedObject
Definition
CurrencyWrapper.cs:5
System.Runtime.InteropServices.CurrencyWrapper.CurrencyWrapper
CurrencyWrapper(decimal obj)
Definition
CurrencyWrapper.cs:7
System.Runtime.InteropServices.CurrencyWrapper
Definition
CurrencyWrapper.cs:4
System.SR.Arg_MustBeDecimal
static string Arg_MustBeDecimal
Definition
SR.cs:266
System.SR
Definition
SR.cs:7
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.ExceptionArgument.obj
@ obj
source
System.Private.CoreLib
System.Runtime.InteropServices
CurrencyWrapper.cs
Generated by
1.10.0