buunguyen / fasterflect

.NET Reflection Made Fast and Simple ⛺
https://www.nuget.org/packages/fasterflect/
Apache License 2.0
285 stars 57 forks source link

type.MembersAndAttributes() is incorrect #9

Open ffhighwind opened 4 years ago

ffhighwind commented 4 years ago

https://github.com/buunguyen/fasterflect/blob/master/Fasterflect/Fasterflect/Extensions/Core/AttributeExtensions.cs

public static IDictionary<MemberInfo, List<Attribute>> MembersAndAttributes( this Type type,
                                                                                     MemberTypes memberTypes,
                                                                                     params Type[] attributeTypes )
        {
            return type.MembersAndAttributes( memberTypes, Flags.InstanceAnyVisibility, null );
        }

I believe this should be attributeTypes instead of null.