SimulationTree.Collections
0.3.4
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SimulationTree.Collections --version 0.3.4
NuGet\Install-Package SimulationTree.Collections -Version 0.3.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimulationTree.Collections" Version="0.3.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimulationTree.Collections" Version="0.3.4" />
<PackageReference Include="SimulationTree.Collections" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimulationTree.Collections --version 0.3.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimulationTree.Collections, 0.3.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimulationTree.Collections@0.3.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimulationTree.Collections&version=0.3.4
#tool nuget:?package=SimulationTree.Collections&version=0.3.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Collections
Native C# library implementing collections.
Installation
Install it by cloning it, or referencing through the NuGet package through GitHub's registry (authentication info).
For installing as a Unity package, use these urls to add this repo and its dependency:
https://github.com/simulation-tree/collections.git?path=source#unity
https://github.com/simulation-tree/unmanaged.git?path=core#unity
Arrays
using Array<int> array = new(4);
array[0] = 1;
array[1] = 3;
array[2] = 3;
array[3] = 7;
foreach (int item in array)
{
Console.WriteLine(item);
}
Lists
using List<int> list = new();
list.Add(1);
list.Add(3);
list.Add(3);
list.Add(7);
foreach (int item in list)
{
Console.WriteLine(item);
}
Dictionaries
using Dictionary<byte, int> dictionary = new();
dictionary.Add(1, 1337);
dictionary.Add(2, 8008135);
dictionary.Add(3, 42);
foreach ((byte key, int value) in dictionary)
{
Console.WriteLine($"{key} = {value}");
}
Stacks
using Stack<int> stack = new();
stack.Push(1);
stack.Push(3);
stack.Push(3);
stack.Push(7);
while (stack.TryPop(out int item))
{
Console.WriteLine(item);
}
Queues
using Queue<int> queue = new();
queue.Enqueue(1);
queue.Enqueue(3);
queue.Enqueue(3);
queue.Enqueue(7);
while (queue.TryDequeue(out int item))
{
Console.WriteLine(item);
}
Hash sets
using HashSet<int> hashSet = new();
hashSet.TryAdd(1);
hashSet.TryAdd(3);
hashSet.TryAdd(3);
hashSet.TryAdd(7);
foreach (int item in hashSet)
{
Console.WriteLine(item);
}
if (hashSet.TryGetValue(7, out int actualValue))
{
Console.WriteLine(actualValue);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- SimulationTree.Unmanaged (>= 0.3.4)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on SimulationTree.Collections:
| Package | Downloads |
|---|---|
|
SimulationTree.Worlds.Core
Native ECS library |
|
|
SimulationTree.Simulation.Core
Faciliates event based systems. |
|
|
SimulationTree.Data.Core
Package Description |
|
|
SimulationTree.JSON
Package Description |
|
|
SimulationTree.Rendering.Systems
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.