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

◆ GetNullableValueField()

static FieldInfo System.Runtime.Serialization.ObjectManager.GetNullableValueField ( Type type)
inlinestaticprivate

Definition at line 272 of file ObjectManager.cs.

273 {
274 if (Nullable.GetUnderlyingType(type) != null)
275 {
276 return (FieldInfo)type.GetMemberWithSameMetadataDefinitionAs(s_nullableValueField);
277 }
278 return null;
279 }
static readonly FieldInfo s_nullableValueField

References System.Nullable< T >.GetUnderlyingType(), System.Runtime.Serialization.ObjectManager.s_nullableValueField, and System.type.

Referenced by System.Runtime.Serialization.ObjectManager.DoValueTypeFixup().