Table of Contents

Method AddReverse

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

AddReverse<TInput, TOutput>(IForwardMap<TInput, TOutput>, IReverseMap<TInput, TOutput>)

Creates a Combined Map. This map use the reverse map to call the Reverse method and the base map to call the Forward Map.

public static IMap<TInput, TOutput> AddReverse<TInput, TOutput>(this IForwardMap<TInput, TOutput> map, IReverseMap<TInput, TOutput> reverse)

Parameters

map IForwardMap<TInput, TOutput>

Base map where you apply this call.

reverse IReverseMap<TInput, TOutput>

Reverse map to combined with the base map.

Returns

IMap<TInput, TOutput>

Type Parameters

TInput

Type of the Input.

TOutput

Type of the Output.