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

◆ ErrorWrapper() [2/3]

System.Runtime.InteropServices.ErrorWrapper.ErrorWrapper ( object errorCode)
inline

Definition at line 12 of file ErrorWrapper.cs.

13 {
14 if (!(errorCode is int))
15 {
16 throw new ArgumentException(SR.Arg_MustBeInt32, "errorCode");
17 }
18 ErrorCode = (int)errorCode;
19 }

References System.SR.Arg_MustBeInt32, and System.Runtime.InteropServices.ErrorWrapper.ErrorCode.