src/Mimp.SeeSharper.Reflection/TypeExtensions.Property.cs
/// <summary>
/// Return the public instance property.
/// </summary>
/// <param name="type"></param>
/// <param name="name"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
/// <exception cref="InvalidOperationException">If no or more than one property exsists.</exception>
Return the public instance property.
Return the public instance property .
public static PropertyInfo GetInstanceProperty(this Type type, string name, bool ignoreCase)
        {
            if (type is null)
                throw new ArgumentNullException(nameof(type));
            if (name is null)
                throw new ArgumentNullException(nameof(name));
            return type.GetProperty(name, true, false, false, ignoreCase);
        }
public static PropertyInfo GetInstanceProperty ( this Type type , string name , bool ignoreCase ) { if ( type is null ) throw new ArgumentNullException ( nameof ( type ) ) ; if ( name is null ) throw new ArgumentNullException ( nameof ( name ) ) ; return type . GetProperty ( name , true , false , false , ignoreCase ) ; }
Return the public instance property.
Return the public instance property .
None
None
If no or more than one property exsists.
If no or more than one property exsists .
Type
this
name
string
None
ignoreCase
bool
type
None