Adjust Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Adjust<T>(T, Func<T, T>)
Adjust the specified value with the function delegate converter.
public static T Adjust<T>(this T value, Func<T, T> converter)
Parameters
valueTThe value to convert.
converterFunc<T, T>The function delegate that will convert the specified
value.
Returns
- T
The
valuein its original or converted form.
Type Parameters
TThe type of the value to convert.
Remarks
This is thought to be a more severe change than the one provided by Alter<T>(T, Action<T>) (e.g., potentially convert the entire value to a new instance).