Class GenericBitFlagsExtensions
GeneralBitFlags helper extensions
Inheritance
System.Object
GenericBitFlagsExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class GenericBitFlagsExtensions
Methods
| Improve this Doc View SourceHasAll(GeneralBitFlags, GeneralBitFlags)
Efficiently check if all the flags are set without enum un-/boxing
Declaration
public static bool HasAll(this GeneralBitFlags target, GeneralBitFlags flags)
Parameters
Type | Name | Description |
---|---|---|
GeneralBitFlags | target | |
GeneralBitFlags | flags |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether the flags are all set |
HasAny(GeneralBitFlags, GeneralBitFlags)
Efficiently check if any of the flags are set without enum un-/boxing
Declaration
public static bool HasAny(this GeneralBitFlags target, GeneralBitFlags flags)
Parameters
Type | Name | Description |
---|---|---|
GeneralBitFlags | target | |
GeneralBitFlags | flags |
Returns
Type | Description |
---|---|
System.Boolean | Returns whether any of flags are set |