Show / Hide Table of Contents

    Class Int32Extensions

    Extension methods for the System.Int32 struct.

    Inheritance
    System.Object
    Int32Extensions
    Namespace: Cuemon.AspNetCore
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public static class Int32Extensions

    Methods

    | Improve this Doc

    IsClientErrorStatusCode(Int32)

    Determines whether the specified statusCode is within the client error related range.

    Declaration
    public static bool IsClientErrorStatusCode(this int statusCode)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The System.Int32 to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Int32 was in the Client Error range (400-499); otherwise, false.

    | Improve this Doc

    IsInformationStatusCode(Int32)

    Determines whether the specified statusCode is within the informational range.

    Declaration
    public static bool IsInformationStatusCode(this int statusCode)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The System.Int32 to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Int32 was in the Information range (100-199); otherwise, false.

    | Improve this Doc

    IsRedirectionStatusCode(Int32)

    Determines whether the specified statusCode is within the redirecting range.

    Declaration
    public static bool IsRedirectionStatusCode(this int statusCode)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The System.Int32 to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Int32 was in the Redirection range (300-399); otherwise, false.

    | Improve this Doc

    IsServerErrorStatusCode(Int32)

    Determines whether the specified statusCode is within the server error related range.

    Declaration
    public static bool IsServerErrorStatusCode(this int statusCode)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The System.Int32 to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Int32 was in the Server Error range (500-599); otherwise, false.

    | Improve this Doc

    IsSuccessStatusCode(Int32)

    Determines whether the specified statusCode is within the successful range.

    Declaration
    public static bool IsSuccessStatusCode(this int statusCode)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The System.Int32 to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Int32 was in the Successful range (200-299); otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX