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

◆ FindInstanceProperty()

static PropertyInfo System.Linq.Expressions.Expression< TDelegate >.FindInstanceProperty ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.NonPublicProperties)] Type type,
string propertyName,
Expression< TDelegate >[] arguments )
inlinestaticprivateinherited

Definition at line 2834 of file Expression.cs.

2835 {
2836 BindingFlags flags = BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy;
2837 PropertyInfo propertyInfo = FindProperty(type, propertyName, arguments, flags);
2838 if (propertyInfo == null)
2839 {
2840 flags = BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy;
2841 propertyInfo = FindProperty(type, propertyName, arguments, flags);
2842 }
2843 if (propertyInfo == null)
2844 {
2845 if (arguments == null || arguments.Length == 0)
2846 {
2847 throw Error.InstancePropertyWithoutParameterNotDefinedForType(propertyName, type);
2848 }
2849 throw Error.InstancePropertyWithSpecifiedParametersNotDefinedForType(propertyName, GetArgTypesString(arguments), type, "propertyName");
2850 }
2851 return propertyInfo;
2852 }
static string GetArgTypesString(Expression[] arguments)
static PropertyInfo FindProperty([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.NonPublicProperties)] Type type, string propertyName, Expression[] arguments, BindingFlags flags)

References System.Linq.Expressions.Expression< TDelegate >.FindProperty(), System.Linq.Expressions.Expression< TDelegate >.GetArgTypesString(), System.Linq.Expressions.Error.InstancePropertyWithoutParameterNotDefinedForType(), System.Linq.Expressions.Error.InstancePropertyWithSpecifiedParametersNotDefinedForType(), and System.type.

Referenced by System.Linq.Expressions.Expression< TDelegate >.Property().