Class ProfileFlagsExtensions
Extension methods for the FacturXDotNet.Models.FacturXProfileFlags enumeration.
Assembly: FacturXDotNet.dll
csharp
public static class ProfileFlagsExtensions
Methods
Match(FacturXProfileFlags, FacturXProfile)
Determines whether the flags contain the specified profile.
csharp
public static bool Match(this FacturXProfileFlags flags, FacturXProfile profile)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfileFlags | flags |
FacturXDotNet.Models.FacturXProfile | profile |
AndLower(FacturXProfile)
Return a FacturXDotNet.Models.FacturXProfileFlags that has all the flags that are lower or equal to the current flags.
csharp
public static FacturXProfileFlags AndLower(this FacturXProfile flags)
Returns
FacturXDotNet.Models.FacturXProfileFlags
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfile | flags |
AndHigher(FacturXProfile)
Return a FacturXDotNet.Models.FacturXProfileFlags that has all the flags that are higher or equal to the current flags.
csharp
public static FacturXProfileFlags AndHigher(this FacturXProfile flags)
Returns
FacturXDotNet.Models.FacturXProfileFlags
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfile | flags |
GetMinProfile(FacturXProfileFlags)
Return the smallest flag in the given flags.
csharp
public static FacturXProfile GetMinProfile(this FacturXProfileFlags flags)
Returns
FacturXDotNet.Models.FacturXProfile
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfileFlags | flags |
GetMaxProfile(FacturXProfileFlags)
Return the largest flag in the given flags.
csharp
public static FacturXProfile GetMaxProfile(this FacturXProfileFlags flags)
Returns
FacturXDotNet.Models.FacturXProfile
Parameters
Type | Name |
---|---|
FacturXDotNet.Models.FacturXProfileFlags | flags |