AccessibilityExtensions.IsSubsetOrEqual Method
IsSubsetOrEqual(Accessibility, Accessibility)
Returns whether the left accessibility is more restrictive or equal than the right accessibility.
Declaration
public static bool IsSubsetOrEqual(this Accessibility left, Accessibility right)
Parameters
Type | Name | Description |
---|---|---|
Accessibility | left | |
Accessibility | right |
Returns
Type | Description |
---|---|
bool |
Examples
For example, a.IsSubsetOf(Accessibility.Protected)
returns true for a
being
Protected, Private or PrivateProtected.