Table of Contents

IsSuccessStatusCode Method

Definition

IsSuccessStatusCode(IDecorator<int>)

Determines whether the enclosed int of the decorator is within the successful range.

public static bool IsSuccessStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<int>

The IDecorator<T> to extend.

Returns

bool

true if the enclosed int of the decorator was in the Successful range (200-299); otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.