Show / Hide Table of Contents

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 Source

HasAll(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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors