Open sandboxFocus

Method IsSupersetOrEqual

IsSupersetOrEqual(Accessibility, Accessibility)

Returns whether the left accessibility is less restrictive or equal than the right accessibility.

Declaration
public static bool IsSupersetOrEqual(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 Protected, ProtectedInternal or Public.