Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Orm/Xtensive.Orm/Reflection/AttributeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static void AddAttributesFromBase(ref TAttribute[] attributes, MemberInf
}
}

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

Expand All @@ -79,7 +79,7 @@ public static TAttribute[] Get(MemberInfo member, AttributeSearchOptions options
/// <param name="member">Member to get attributes of.</param>
/// <param name="options">Attribute search options.</param>
/// <returns>An array of attributes of specified type.</returns>
public static IReadOnlyList<TAttribute> GetAttributes<TAttribute>(this MemberInfo member, AttributeSearchOptions options = AttributeSearchOptions.InheritNone)
internal static IReadOnlyList<TAttribute> GetAttributes<TAttribute>(this MemberInfo member, AttributeSearchOptions options = AttributeSearchOptions.InheritNone)
where TAttribute : Attribute => AttributeDictionary<TAttribute>.Get(member, options);

/// <summary>
Expand All @@ -94,7 +94,7 @@ public static IReadOnlyList<TAttribute> GetAttributes<TAttribute>(this MemberInf
/// throws <see cref="InvalidOperationException"/>, if there is more then one attribute of specified type found.
/// </returns>
/// <exception cref="InvalidOperationException">Thrown if there is more then one attribute of specified type found.</exception>
public static TAttribute GetAttribute<TAttribute>(this MemberInfo member, AttributeSearchOptions options = AttributeSearchOptions.InheritNone)
internal static TAttribute GetAttribute<TAttribute>(this MemberInfo member, AttributeSearchOptions options = AttributeSearchOptions.InheritNone)
where TAttribute : Attribute
{
var attributes = AttributeDictionary<TAttribute>.Get(member, options);
Expand Down