FlagsEnumeration.HasFlag<T> method

Checks if the current flag has the specified flag.

public virtual bool HasFlag<T>(T flag)
    where T : FlagsEnumeration
parameterdescription
flagThe flag to check.

Return Value

true if the flag is present; otherwise, false.

See Also