Method Func
Func<TInput, TOutput>(Func<TInput, TOutput>)
Creates a FuncForwardMap. This map saves a function to be used in a Forward call.
public static IForwardMap<TInput, TOutput> Func<TInput, TOutput>(Func<TInput, TOutput> forward)Parameters
- forwardFunc<TInput, TOutput>
- This function is used when the Forward method of the map is called. 
Returns
- IForwardMap<TInput, TOutput>
Type Parameters
- TInput
- Type of the Input. 
- TOutput
- Type of the Output. 
Func<TInput, TOutput>(Func<TInput, TOutput>, Func<TOutput, TInput>)
Creates a Func Map that calls a forward and reverse function in is Forward and Reverse calls.
public static IMap<TInput, TOutput> Func<TInput, TOutput>(Func<TInput, TOutput> forward, Func<TOutput, TInput> reverse)Parameters
- forwardFunc<TInput, TOutput>
- This function will be used when calling the Forward map. 
- reverseFunc<TOutput, TInput>
- This function will be used when calling the Reverse map. 
Returns
- IMap<TInput, TOutput>
Type Parameters
- TInput
- Type of the Input. 
- TOutput
- Type of the Output.