Skip to content

Commit 62a0bc7

Browse files
authored
Make .GetAttributes() extension internal (#374)
* Make `.GetAttributes()` internal * .GetAttribute()
1 parent 5f5c254 commit 62a0bc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Orm/Xtensive.Orm/Reflection/AttributeHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private static void AddAttributesFromBase(ref TAttribute[] attributes, MemberInf
6868
}
6969
}
7070

71-
public static TAttribute[] Get(MemberInfo member, AttributeSearchOptions options) =>
71+
internal static TAttribute[] Get(MemberInfo member, AttributeSearchOptions options) =>
7272
Dictionary.GetOrAdd(new PerAttributeKey(member.MetadataToken, member.Module.ModuleHandle, options), ExtractAttributesByKey, member);
7373
}
7474

@@ -79,7 +79,7 @@ public static TAttribute[] Get(MemberInfo member, AttributeSearchOptions options
7979
/// <param name="member">Member to get attributes of.</param>
8080
/// <param name="options">Attribute search options.</param>
8181
/// <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)
8383
where TAttribute : Attribute => AttributeDictionary<TAttribute>.Get(member, options);
8484

8585
/// <summary>
@@ -94,7 +94,7 @@ public static IReadOnlyList<TAttribute> GetAttributes<TAttribute>(this MemberInf
9494
/// throws <see cref="InvalidOperationException"/>, if there is more then one attribute of specified type found.
9595
/// </returns>
9696
/// <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)
9898
where TAttribute : Attribute
9999
{
100100
var attributes = AttributeDictionary<TAttribute>.Get(member, options);

0 commit comments

Comments
 (0)