Class EnumerableExtension
Inheritance
System.Object
EnumerableExtension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Appearition.Assessment
Assembly: Appearition.SDK.dll
Syntax
public static class EnumerableExtension
Methods
View SourcePickRandom<T>(IEnumerable<T>)
Declaration
public static T PickRandom<T>(this IEnumerable<T> source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | source |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
PickRandom<T>(IEnumerable<T>, Int32)
Declaration
public static IEnumerable<T> PickRandom<T>(this IEnumerable<T> source, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | source | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> |
Type Parameters
Name | Description |
---|---|
T |
Shuffle<T>(IEnumerable<T>)
Declaration
public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> source)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | source |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> |
Type Parameters
Name | Description |
---|---|
T |