Open sandboxFocus

Method IsSubsetOf

IsSubsetOf(Accessibility, Accessibility)

Returns whether the left accessibility is strictly more restrictive than the right accessibility.

Declaration
public static bool IsSubsetOf(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 Private or PrivateProtected.