Class ComparisonKindsExtensions
Contains extensions for the ComparisonKinds enum.
public static class ComparisonKindsExtensions
- Inheritance
-
ComparisonKindsExtensions
- Inherited Members
Methods
AsResult(ComparisonKinds)
Converts the given comparison kind into a ComparisonResult value.
public static ComparisonResult AsResult(this ComparisonKinds kind)
Parameters
kindComparisonKindsThe single comparison kind that should be
Returns
- ComparisonResult
The respective ComparisonResult value.
Exceptions
- ArgumentException
Thrown if
kinddoes not represent exactly a single comparison kind.
HasKinds(ComparisonKinds, ComparisonKinds)
Determines whether a ComparisonKinds value contains the given kinds.
public static bool HasKinds(this ComparisonKinds kinds, ComparisonKinds other)
Parameters
kindsComparisonKindsThe kinds value to determine if it contains the requested kinds.
otherComparisonKindsThe requested comparison kinds to check if they are contained in the given ComparisonKinds value.
Returns
Matches(ComparisonKinds, ComparisonResult)
Determines whether a ComparisonKinds contains a comparison kind that matches the given ComparisonResult.
public static bool Matches(this ComparisonKinds kinds, ComparisonResult result)
Parameters
kindsComparisonKindsThe comparison kinds to determine whether they are satisfied by the result.
resultComparisonResultThe