Search Results for

    Show / Hide Table of Contents

    Class Result<T>

    Represents the result of an operation that returns a value.

    Inheritance
    Object
    ResultBase
    Result<T>
    Inherited Members
    ResultBase.Status
    ResultBase.IsSuccess
    ResultBase.IsFailed
    ResultBase.Message
    ResultBase.Errors
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SimpleResults
    Assembly: SimpleResults.dll
    Syntax
    public sealed class Result<T> : ResultBase
    Type Parameters
    Name Description
    T

    A value associated to the result.

    Constructors

    Name Description
    Result()

    Initializes a new instance of the Result<T> class.

    Properties

    Name Description
    Data

    Gets the data associated with the result.

    Operators

    Name Description
    Implicit(T to Result<T>)

    Converts the value of type T to an instance of type Result<T>.

    Implicit(Result to Result<T>)

    Converts an instance of type Result to Result<T>.

    Implicit(Result<T> to T)

    Converts an instance of type Result<T> to the value of type T.

    Extension Methods

    ResultExtensions.ToActionResult<T>(Result<T>)
    ResultExtensions.ToHttpResult<T>(Result<T>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2023 SimpleResults