System.Reflection.Binder.SelectProperty C# (CSharp) Method

SelectProperty() public abstract method

public abstract SelectProperty ( BindingFlags bindingAttr, Array match, Type returnType, Array indexes, Array modifiers ) : PropertyInfo
bindingAttr BindingFlags
match Array
returnType Type
indexes Array
modifiers Array
return PropertyInfo
        public abstract PropertyInfo SelectProperty(BindingFlags bindingAttr, PropertyInfo[] match, Type returnType, Type[] indexes, ParameterModifier[] modifiers);
    }

Usage Example

Esempio n. 1
0
		protected override PropertyInfo GetPropertyImpl (string name, BindingFlags bindingAttr,
								 Binder binder, Type returnType,
								 Type[] types,
								 ParameterModifier[] modifiers)
		{
			bool ignoreCase = ((bindingAttr & BindingFlags.IgnoreCase) != 0);
			PropertyInfo [] props = GetPropertiesByName (name, bindingAttr, ignoreCase, this);
			int count = props.Length;
			if (count == 0)
				return null;
			
			if (count == 1 && (types == null || types.Length == 0) && 
			    (returnType == null || returnType == props[0].PropertyType))
				return props [0];

			if (binder == null)
				binder = Binder.DefaultBinder;

			return binder.SelectProperty (bindingAttr, props, returnType, types, modifiers);
		}
All Usage Examples Of System.Reflection.Binder::SelectProperty