Method Constant
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
Constant<TSource>(TSource)
Makes a generator that generates the same item each time.
public static IGenerator<TSource> Constant<TSource>(TSource item)
Parameters
item
TSourceThe item to generate.
Returns
- IGenerator<TSource>
Type Parameters
TSource
The type of the item to generate.