Change Method
Definition
Change<T, TResult>(T, Func<T, TResult>)
Converts the specified value to a value of TResult.
public static TResult Change<T, TResult>(T value, Func<T, TResult> converter)
Parameters
valueTThe value to convert.
converterFunc<T, TResult>The function delegate that will perform the conversion.
Returns
- TResult
The
valueconverted to the specifiedT.
Type Parameters
TThe type of the value to convert.
TResultThe type of the value to return.
Exceptions
- ArgumentNullException
valuecannot be null.