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

◆ SizeOf< T >() [1/2]

static int System.Runtime.InteropServices.Marshal.SizeOf< T > ( )
inlinestatic

Definition at line 732 of file Marshal.cs.

733 {
734 Type typeFromHandle = typeof(T);
735 if (typeFromHandle.IsGenericType)
736 {
737 throw new ArgumentException(SR.Argument_NeedNonGenericType, "T");
738 }
739 return SizeOfHelper(typeFromHandle, throwIfNotMarshalable: true);
740 }
static int SizeOfHelper(Type t, bool throwIfNotMarshalable)

References System.SR.Argument_NeedNonGenericType, System.Type.IsGenericType, and System.Runtime.InteropServices.Marshal.SizeOfHelper().