https://github.com/xjine/unity_ilistex
IListEx provieds IList extension methods.
https://github.com/xjine/unity_ilistex
csharp unity
Last synced: about 2 months ago
JSON representation
IListEx provieds IList extension methods.
- Host: GitHub
- URL: https://github.com/xjine/unity_ilistex
- Owner: XJINE
- License: bsd-3-clause
- Created: 2019-11-28T12:49:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T12:55:58.000Z (over 6 years ago)
- Last Synced: 2025-02-08T22:28:18.520Z (over 1 year ago)
- Topics: csharp, unity
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_IListEx
IListEx provieds IList extension methods.
*NOTE:* This project is made by Unity, but the ``IListEx.cs`` works on a native C#.
## Import to Your Project
You can import this asset from UnityPackage.
- [IListEx.unitypackage](https://github.com/XJINE/Unity_IListEx/blob/master/IListEx.unitypackage)
## How to Use
IListEx provies folloing methods.
```csharp
public static void Add (this IList list, T item, int capacity)
public static void Enqueue(this IList list, T item)
public static void Enqueue(this IList list, T item, int capacity)
public static T Dequeue(this IList list)
public static T Peek (this IList list)
public static void Push (this IList list, T item)
public static void Push (this IList list, T item, int capacity)
public static T Pop (this IList list)
public static void RemoveRange(this IList list, int index, int count)
public static IEnumerable Slice(this IList list, int index, int count)
public static T Random (this IList list)
public static void Shuffle(this IList list)
```