Search Results for

    Show / Hide Table of Contents

    Class ResultExtensions

    Defines extension methods for the Result object.

    Inheritance
    Object
    ResultExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SimpleResults
    Assembly: SimpleResults.AspNetCore.dll
    Syntax
    public static class ResultExtensions

    Methods

    Name Description
    ToActionResult(Result)

    Converts the Result to ActionResult<TValue> where TValue is a Result.

    ToActionResult<T>(ListedResult<T>)

    Converts the ListedResult<T> to ActionResult<TValue> where TValue is a ListedResult<T>.

    ToActionResult<T>(PagedResult<T>)

    Converts the PagedResult<T> to ActionResult<TValue> where TValue is a PagedResult<T>.

    ToActionResult<T>(Result<T>)

    Converts the Result<T> to ActionResult<TValue> where TValue is a Result<T>.

    ToHttpResult(Result)

    Converts the Result to an implementation of IResult.

    ToHttpResult<T>(ListedResult<T>)

    Converts the ListedResult<T> to an implementation of IResult.

    ToHttpResult<T>(PagedResult<T>)

    Converts the PagedResult<T> to an implementation of IResult.

    ToHttpResult<T>(Result<T>)

    Converts the Result<T> to an implementation of IResult.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2023 SimpleResults