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

◆ Property() [1/7]

static MemberExpression System.Linq.Expressions.Expression< TDelegate >.Property ( Expression< TDelegate > expression,
string propertyName )
inlinestaticinherited

Definition at line 3709 of file Expression.cs.

3710 {
3713 PropertyInfo propertyInfo = expression.Type.GetProperty(propertyName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy) ?? expression.Type.GetProperty(propertyName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy);
3714 if (propertyInfo == null)
3715 {
3716 throw Error.InstancePropertyNotDefinedForType(propertyName, expression.Type, "propertyName");
3717 }
3718 return Property(expression, propertyInfo);
3719 }
static void RequiresNotNull(object value, string paramName)
static void RequiresCanRead(Expression expression, string paramName)

References System.Linq.Expressions.Error.InstancePropertyNotDefinedForType(), System.Property, System.Dynamic.Utils.ExpressionUtils.RequiresCanRead(), and System.Dynamic.Utils.ContractUtils.RequiresNotNull().