19 lines
632 B
C#
19 lines
632 B
C#
namespace Microsoft.CodeAnalysis.CSharp.Symbols;
|
|
|
|
internal static class AccessibilityExtensions
|
|
{
|
|
public static bool HasProtected(this Accessibility accessibility)
|
|
{
|
|
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0004: Invalid comparison between Unknown and I4
|
|
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
|
|
//IL_0008: Invalid comparison between Unknown and I4
|
|
if (accessibility - 2 <= 1 || (int)accessibility == 5)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|