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

◆ GetPropertyGetter()

static Func< PropertyValue, PropertyValue > System.Diagnostics.Tracing.PropertyValue.GetPropertyGetter ( PropertyInfo property)
inlinestatic

Definition at line 451 of file PropertyValue.cs.

452 {
453 if (property.DeclaringType.IsValueType)
454 {
455 return GetBoxedValueTypePropertyGetter(property);
456 }
457 return GetReferenceTypePropertyGetter(property);
458 }
bool IsValueType
Definition Type.cs:234
static Func< PropertyValue, PropertyValue > GetReferenceTypePropertyGetter(PropertyInfo property)
static Func< PropertyValue, PropertyValue > GetBoxedValueTypePropertyGetter(PropertyInfo property)

References System.Reflection.MemberInfo.DeclaringType, System.Diagnostics.Tracing.PropertyValue.GetBoxedValueTypePropertyGetter(), System.Diagnostics.Tracing.PropertyValue.GetReferenceTypePropertyGetter(), and System.Type.IsValueType.

Referenced by System.Diagnostics.Tracing.PropertyAnalysis.PropertyAnalysis().