RawEnclose Method
Definition
RawEnclose<T>(T)
Encloses the specified inner so that it can be extended by non-common extension methods.
public static Decorator<T> RawEnclose<T>(T inner)
Parameters
innerTThe object to extend for non-common extension methods.
Returns
- Decorator<T>
An instance of Decorator<T>.
Type Parameters
TThe type of the
innerto wrap for non-common extension methods.
Remarks
Unlike Enclose<T>(T, bool), this method does not perform a null-check when wrapping the value.