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

◆ Box()

static unsafe object System.Reflection.Pointer.Box ( void * ptr,
Type type )
inlinestatic

Definition at line 19 of file Pointer.cs.

20 {
21 if (type == null)
22 {
23 throw new ArgumentNullException("type");
24 }
25 if (!type.IsPointer)
26 {
27 throw new ArgumentException(SR.Arg_MustBePointer, "ptr");
28 }
29 if (!type.IsRuntimeImplemented())
30 {
31 throw new ArgumentException(SR.Arg_MustBeType, "ptr");
32 }
33 return new Pointer(ptr, type);
34 }
unsafe Pointer(void *ptr, Type ptrType)
Definition Pointer.cs:13

References System.Reflection.Pointer.Pointer(), System.SR.Arg_MustBePointer, System.SR.Arg_MustBeType, System.Runtime.Serialization.Dictionary, and System.type.