static OVRResult< TStatus > | From< TStatus > ( TStatus status ) |
static OVRResult< TResult, TStatus > | |
static OVRResult< TStatus > | From ( TStatus status ) Creates a new OVRResult<TValue, TStatus> with the specified status. |
static OVRResult< TStatus > | FromSuccess ( TStatus status ) Creates a new OVRResult<TValue, TStatus> with the specified success status. |
static OVRResult< TStatus > | FromFailure ( TStatus status ) Creates a new OVRResult<TValue, TStatus> with the specified failure status. |
static OVRResult< TValue, TStatus > | Creates a new OVRResult<TValue, TStatus> with the specified value and status. |
static OVRResult< TValue, TStatus > | Creates a new OVRResult<TValue, TStatus> with the specified value and a success status. |
static OVRResult< TValue, TStatus > | FromFailure ( TStatus status ) Creates a new OVRResult<TValue, TStatus> with the specified failure status. |
bool | |
override bool | Equals ( object obj ) Determines whether the current OVRResult<TStatus> is equal to another object. |
override int | GetHashCode ( ) Gets a hashcode suitable for use in a Dictionary or HashSet. |
override string | ToString ( ) Generates a string representation of this result object. |
bool | TryGetValue ( out TValue value ) Tries to retrieve the value of the result. |
bool | |
override bool | Equals ( object obj ) Determines whether the current OVRResult<TValue, TStatus> is equal to another object. |
override bool TStatus other && | Equals ( other ) |
override int | GetHashCode ( ) Gets a hashcode suitable for use in a Dictionary or HashSet. |
override string | ToString ( ) Generates a string representation of this result object. |
bool OVRResult< TValue, TStatus >::Success |
---|
Gets a bool indicating whether the result is a success. |
TStatus OVRResult< TValue, TStatus >::Status |
---|
Gets the status of the result. |
bool OVRResult< TValue, TStatus >.HasValue |
---|
Gets a bool indicating whether the result has a value. |
TValue OVRResult< TValue, TStatus >.Value |
---|
The value of the result. It is an error to access this property unless Success is True. See also TryGetValue. Exceptions InvalidOperationException Thrown if Success is False. See Also: |
static OVRResult< TStatus > OVRResult< TValue, TStatus >.From< TStatus > ( TStatus status ) |
---|
No description available.
|
static OVRResult< TResult, TStatus > OVRResult< TValue, TStatus >.From< TResult, TStatus > ( TResult result, TStatus status ) |
---|
No description available.
|
static OVRResult< TStatus > OVRResult< TValue, TStatus >.From ( TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified status. Parameters status The status. Returns A new OVRResult<TValue, TStatus> with the specified status. See Also: |
static OVRResult< TStatus > OVRResult< TValue, TStatus >.FromSuccess ( TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified success status. Parameters status The status (must be a valid success status). Returns A new OVRResult<TValue, TStatus> with the specified status. Exceptions ArgumentException Thrown when status is not a valid success status. See Also: |
static OVRResult< TStatus > OVRResult< TValue, TStatus >.FromFailure ( TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified failure status. Parameters status The status (must be a valid failure status). Returns A new OVRResult<TValue, TStatus> with the specified status. Exceptions ArgumentException Thrown when status is not a valid failure status. See Also: |
static OVRResult< TValue, TStatus > OVRResult< TValue, TStatus >.From ( TValue value, TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified value and status. Parameters value The value. statusThe status. Returns A new OVRResult<TValue, TStatus> with the specified value and status. See Also: |
static OVRResult< TValue, TStatus > OVRResult< TValue, TStatus >.FromSuccess ( TValue value, TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified value and a success status. Parameters value The value. statusThe status (must be a valid success status). Returns A new OVRResult<TValue, TStatus> with the specified value and status. Exceptions ArgumentException Thrown when status is not a valid success status. See Also: |
static OVRResult< TValue, TStatus > OVRResult< TValue, TStatus >.FromFailure ( TStatus status ) |
---|
Creates a new OVRResult<TValue, TStatus> with the specified failure status. Parameters status The status (must be a valid failure status). Returns A new OVRResult<TValue, TStatus> with the specified status. Exceptions ArgumentException Thrown when status is not a valid failure status. See Also: |
bool OVRResult< TValue, TStatus >.Equals ( OVRResult< TStatus > other ) |
---|
Determines whether the current OVRResult<TStatus> is equal to another OVRResult<TStatus>. Parameters other The OVRResult<TStatus> to compare with the current one. Returns true if the specified OVRResult<TStatus> is equal to the current OVRResult<TStatus>; otherwise, false. |
override bool OVRResult< TValue, TStatus >.Equals ( object obj ) |
---|
Determines whether the current OVRResult<TStatus> is equal to another object. Parameters obj The object to compare with the current OVRResult<TStatus>. Returns true if the specified object is equal to the current OVRResult<TStatus>; otherwise, false. |
override int OVRResult< TValue, TStatus >.GetHashCode ( ) |
---|
Gets a hashcode suitable for use in a Dictionary or HashSet. Returns A hashcode for this result. |
override string OVRResult< TValue, TStatus >.ToString ( ) |
---|
Generates a string representation of this result object. The string representation is the stringification of Status, or "(invalid result)" if this result object has not been initialized. Returns A string representation of this OVRResult<TStatus> |
bool OVRResult< TValue, TStatus >.TryGetValue ( out TValue value ) |
---|
bool OVRResult< TValue, TStatus >.Equals ( OVRResult< TValue, TStatus > other ) |
---|
Determines whether the current OVRResult<TValue, TStatus> is equal to another OVRResult<TValue, TStatus>. Parameters other The OVRResult<TValue, TStatus> to compare with the current one. Returns true if the specified OVRResult<TValue, TStatus> is equal to the current OVRResult<TValue, TStatus>; otherwise, false. |
override bool OVRResult< TValue, TStatus >.Equals ( object obj ) |
---|
Determines whether the current OVRResult<TValue, TStatus> is equal to another object. Parameters obj The object to compare with the current OVRResult<TValue, TStatus>. Returns true if the specified object is equal to the current OVRResult<TValue, TStatus>; otherwise, false. |
override bool TStatus other && OVRResult< TValue, TStatus >.Equals ( other ) |
---|
No description available.
|
override int OVRResult< TValue, TStatus >.GetHashCode ( ) |
---|
Gets a hashcode suitable for use in a Dictionary or HashSet. Returns A hashcode for this result. |
override string OVRResult< TValue, TStatus >.ToString ( ) |
---|
Generates a string representation of this result object. If this result object has not been initialized, the string is "(invalid result)". Otherwise, if Success is True, then the string is the stringification of the Status and Value. If Success is False, then it is just the stringification of Status. Returns A string representation of this OVRResult<TStatus> |