Class Int32Extensions
Extension methods for the System.Int32 struct.
Inheritance
Namespace: Cuemon.AspNetCore
Assembly: Cuemon.AspNetCore.dll
Syntax
public static class Int32Extensions
Methods
| Improve this DocIsClientErrorStatusCode(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 |
|
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 |
|
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 |
|
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 |
|
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 |
|