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

◆ GetStaticNullForUdtTypeCore()

static object System.Data.Common.SqlUdtStorage.GetStaticNullForUdtTypeCore ( Type type)
inlinestaticprivate

Definition at line 41 of file SqlUdtStorage.cs.

42 {
43 PropertyInfo property = type.GetProperty("Null", BindingFlags.Static | BindingFlags.Public);
44 if (property != null)
45 {
46 return property.GetValue(null, null);
47 }
48 FieldInfo field = type.GetField("Null", BindingFlags.Static | BindingFlags.Public);
49 if (field != null)
50 {
51 return field.GetValue(null);
52 }
53 throw ExceptionBuilder.INullableUDTwithoutStaticNull(type.AssemblyQualifiedName);
54 }
object? GetValue(object? obj)
object? GetValue(object? obj)

References System.Xml.Dictionary, System.Reflection.FieldInfo.GetValue(), System.Reflection.PropertyInfo.GetValue(), System.Data.ExceptionBuilder.INullableUDTwithoutStaticNull(), and System.type.

Referenced by System.Data.Common.SqlUdtStorage.GetStaticNullForUdtType().