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

◆ Property() [3/7]

static MemberExpression System.Linq.Expressions.Expression< TDelegate >.Property ( Expression< TDelegate >? expression,
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] Type type,
string propertyName )
inlinestaticinherited

Definition at line 3721 of file Expression.cs.

3722 {
3725 PropertyInfo propertyInfo = type.GetProperty(propertyName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy) ?? type.GetProperty(propertyName, BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy);
3726 if (propertyInfo == null)
3727 {
3728 throw Error.PropertyNotDefinedForType(propertyName, type, "propertyName");
3729 }
3730 return Property(expression, propertyInfo);
3731 }
static void RequiresNotNull(object value, string paramName)

References System.Property, System.Linq.Expressions.Error.PropertyNotDefinedForType(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), and System.type.