Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic.Extensions.Obsolete
GeneratorExtensions Class
GeneratorExtensions Methods
Aggregate(T, U) Method
AggregateWindow(T, U) Method
Buffer(T) Method
Cast(T) Method
Next(T) Method
OfType(T) Method
RepeatWithProbability(T) Method
Select(T, U) Method
ToPeriodicGenerator(T) Method
ToRandomElementGenerator(T) Method
Where(T) Method
WhereBuffer(T) Method
Window(T) Method
GeneratorExtensions
ToRandomElementGenerator
T
Method
Namespace:
Gamelogic.Extensions.Obsolete
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
Copy
public
static
IGenerator
<T>
ToRandomElementGenerator
<T>(
this
IEnumerable
<T>
enumerable
)
Parameters
enumerable
Type:
System.Collections.Generic
IEnumerable
T
Type Parameters
T
Return Value
Type:
IGenerator
T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable
T
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
GeneratorExtensions Class
Gamelogic.Extensions.Obsolete Namespace