Stetic.TypedPropertyDescriptor.FindProperty C# (CSharp) Method

FindProperty() static private method

static private FindProperty ( Type wrapperType, Type objectType, string propertyName ) : PropertyInfo
wrapperType System.Type
objectType System.Type
propertyName string
return System.Reflection.PropertyInfo
        static PropertyInfo FindProperty(Type wrapperType, Type objectType, string propertyName)
        {
            PropertyInfo info;

            if (wrapperType != null) {
                info = wrapperType.GetProperty (propertyName, flags);
                if (info != null)
                    return info;
            }

            info = objectType.GetProperty (propertyName, flags);
            if (info != null)
                return info;

            throw new ArgumentException ("Invalid property name " + objectType.Name + "." + propertyName);
        }

Same methods

TypedPropertyDescriptor::FindProperty ( Type type, string propertyName ) : PropertyInfo