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

◆ SizeOf() [2/2]

static int System.Runtime.InteropServices.Marshal.SizeOf ( Type t)
inlinestatic

Definition at line 715 of file Marshal.cs.

716 {
717 if ((object)t == null)
718 {
719 throw new ArgumentNullException("t");
720 }
721 if (!t.IsRuntimeImplemented())
722 {
723 throw new ArgumentException(SR.Argument_MustBeRuntimeType, "t");
724 }
725 if (t.IsGenericType)
726 {
727 throw new ArgumentException(SR.Argument_NeedNonGenericType, "t");
728 }
729 return SizeOfHelper(t, throwIfNotMarshalable: true);
730 }
static int SizeOfHelper(Type t, bool throwIfNotMarshalable)

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