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

◆ ChkCastClass()

static unsafe object System.Runtime.CompilerServices.CastHelpers.ChkCastClass ( void * toTypeHnd,
object obj )
inlinestaticprivate

Definition at line 355 of file CastHelpers.cs.

356 {
357 if (obj == null || RuntimeHelpers.GetMethodTable(obj) == toTypeHnd)
358 {
359 return obj;
360 }
361 return ChkCastClassSpecial(toTypeHnd, obj);
362 }
static unsafe object ChkCastClassSpecial(void *toTypeHnd, object obj)

References System.Runtime.CompilerServices.CastHelpers.ChkCastClassSpecial(), System.Runtime.CompilerServices.RuntimeHelpers.GetMethodTable(), and System.obj.