 | GeneratorLogTSource Method (IGeneratorTSource, ActionTSource) |
A generator that generates the elements of the source generator, but applies a log function to each element as it is generated.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
RemarksThis generator is useful for debugging, to inspect the results of a internal generator.
It should not be used for other purposes. (Generators should generally not have side effects).
Examplesvar generator = Generator.Count(4).Log(x => Debug.Log(x.ToString())).Select(x => 2*x);
See Also