IsSupersetOf(Accessibility, Accessibility)
Returns whether the left accessibility is strictly less restrictive than the right accessibility.
Declaration
public static bool IsSupersetOf(this Accessibility left, Accessibility right)
Parameters
Type | Name | Description |
---|---|---|
Accessibility | left | |
Accessibility | right |
Returns
Type | Description |
---|---|
bool |
Examples
For example, a.IsSupersetOf(Accessibility.Protected)
returns true for a
being
ProtectedInternal or Public.