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

◆ GetMemberType()

static Type System.Linq.Expressions.Interpreter.LightCompiler.GetMemberType ( MemberInfo member)
inlinestaticprivate

Definition at line 2112 of file LightCompiler.cs.

2113 {
2115 if (fieldInfo != null)
2116 {
2117 return fieldInfo.FieldType;
2118 }
2119 PropertyInfo propertyInfo = member as PropertyInfo;
2120 if (propertyInfo != null)
2121 {
2122 return propertyInfo.PropertyType;
2123 }
2124 throw new InvalidOperationException("MemberNotFieldOrProperty");
2125 }

References System.Reflection.PropertyInfo.PropertyType.

Referenced by System.Linq.Expressions.Interpreter.LightCompiler.CompileMemberInit().