Click or drag to resize

ListExtensions Class

Extension methods for various list and array types
Inheritance Hierarchy
SystemObject
  ImmerseSDK.ExtensionsListExtensions

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static class ListExtensions

The ListExtensions type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberListExtensions
Top
Methods
  NameDescription
Public methodStatic memberContainsT
Check if an array contains a value
Public methodStatic memberConvertToArrayT
Converts a List to an Array without using Linq
Public methodStatic memberConvertToListT
Converts an Array to a List without using Linq
Public methodStatic memberGetRandomT(ListT)
Returns a random item from a List
Public methodStatic memberGetRandomT(T)
Returns a random item from an array
Public methodStatic memberIndexOfT
Gets the index of an entry in an array
Public methodStatic memberShuffleT
Shuffles an IList of type T (Does not create a copy)
Top
See Also

Reference

List
System.CollectionsIList
SystemArray