Catel.Reflection.TypeInfoExtensions.GetMember C# (CSharp) Method

GetMember() public static method

Gets the member with the specified name.
The is null. The is null or whitespace.
public static GetMember ( this typeInfo, string name, BindingFlags bindingFlags ) : System.Reflection.MemberInfo[]
typeInfo this The .
name string The name of the member to retrieve.
bindingFlags BindingFlags The binding flags.
return System.Reflection.MemberInfo[]
        public static MemberInfo[] GetMember(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)
        {
            Argument.IsNotNull("typeInfo", typeInfo);
            Argument.IsNotNullOrWhitespace("name", name);

            return (from x in GetMembers(typeInfo, bindingFlags)
                    where x.Name == name
                    select x).ToArray();
        }