BooleanResultHelper Class
Namespace: PTS
Assembly: PTS.Modules.ResultComponent.dll
Provides a set of static methods for bool
type.
Syntax
public static class BooleanResultHelper
Inheritance
System.Object
BooleanResultHelper
Methods
ToResult(Boolean, String)
Converts to result representation of given boolan vaule.
Declaration
public static Result ToResult(this bool value, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | Boolean value that determines the result type. |
System.String | message | Validation message to be attached to the result. |
Returns
Type | Description |
---|---|
Result | Result object with corresponding ResultType value, |
ToResultType(Boolean)
Converts boolean value to curresponding ResultType.
Declaration
public static ResultType ToResultType(this bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | if set to |
Returns
Type | Description |
---|---|
ResultType | Corresponding ResultType value. |
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()