@@ -68,7 +68,7 @@ private static void AddAttributesFromBase(ref TAttribute[] attributes, MemberInf
68
68
}
69
69
}
70
70
71
- public static TAttribute [ ] Get ( MemberInfo member , AttributeSearchOptions options ) =>
71
+ internal static TAttribute [ ] Get ( MemberInfo member , AttributeSearchOptions options ) =>
72
72
Dictionary . GetOrAdd ( new PerAttributeKey ( member . MetadataToken , member . Module . ModuleHandle , options ) , ExtractAttributesByKey , member ) ;
73
73
}
74
74
@@ -79,7 +79,7 @@ public static TAttribute[] Get(MemberInfo member, AttributeSearchOptions options
79
79
/// <param name="member">Member to get attributes of.</param>
80
80
/// <param name="options">Attribute search options.</param>
81
81
/// <returns>An array of attributes of specified type.</returns>
82
- public static IReadOnlyList < TAttribute > GetAttributes < TAttribute > ( this MemberInfo member , AttributeSearchOptions options = AttributeSearchOptions . InheritNone )
82
+ internal static IReadOnlyList < TAttribute > GetAttributes < TAttribute > ( this MemberInfo member , AttributeSearchOptions options = AttributeSearchOptions . InheritNone )
83
83
where TAttribute : Attribute => AttributeDictionary < TAttribute > . Get ( member , options ) ;
84
84
85
85
/// <summary>
@@ -94,7 +94,7 @@ public static IReadOnlyList<TAttribute> GetAttributes<TAttribute>(this MemberInf
94
94
/// throws <see cref="InvalidOperationException"/>, if there is more then one attribute of specified type found.
95
95
/// </returns>
96
96
/// <exception cref="InvalidOperationException">Thrown if there is more then one attribute of specified type found.</exception>
97
- public static TAttribute GetAttribute < TAttribute > ( this MemberInfo member , AttributeSearchOptions options = AttributeSearchOptions . InheritNone )
97
+ internal static TAttribute GetAttribute < TAttribute > ( this MemberInfo member , AttributeSearchOptions options = AttributeSearchOptions . InheritNone )
98
98
where TAttribute : Attribute
99
99
{
100
100
var attributes = AttributeDictionary < TAttribute > . Get ( member , options ) ;
0 commit comments