15 lines
625 B
C#
15 lines
625 B
C#
namespace MfGames.Locking
|
|
{
|
|
/// <summary>
|
|
/// Defines the common try/get handler to retrieve an item of a given type.
|
|
/// </summary>
|
|
/// <typeparam name="TInput">The type of the input or lookup key.</typeparam>
|
|
/// <typeparam name="TOutput">The type of the output.</typeparam>
|
|
/// <param name="input">The input value to search for.</param>
|
|
/// <param name="output">The resulting output value.</param>
|
|
/// <returns>True if the attempt was successful, otherwise false.</returns>
|
|
public delegate bool TryGetHandler<in TInput, TOutput>(
|
|
TInput input,
|
|
out TOutput output);
|
|
}
|