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

◆ GenerateGuidForType()

static Guid System.Runtime.InteropServices.Marshal.GenerateGuidForType ( Type type)
inlinestatic

Definition at line 1379 of file Marshal.cs.

1380 {
1381 if ((object)type == null)
1382 {
1383 throw new ArgumentNullException("type");
1384 }
1385 if (!type.IsRuntimeImplemented())
1386 {
1387 throw new ArgumentException(SR.Argument_MustBeRuntimeType, "type");
1388 }
1389 return type.GUID;
1390 }

References System.SR.Argument_MustBeRuntimeType, and System.type.