This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-locking-cil/src/MfGames.Locking/TryGetHandler.cs
2021-01-20 19:22:18 -06:00

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);
}