Table of Contents

Method Func

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

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

forward Func<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

forward Func<TInput, TOutput>

This function will be used when calling the Forward map.

reverse Func<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.