Add extended structs for C#.
StructCollection━┳━Array
┃ ┗(ListArray)
┗━Template
┗(Array)
Namespace Array
is containing struct for array.
Structs: ListArray
Namespace Template
is containing struct templates.
Structs: Array
Make array-like list.
ListArray<T>()
Make empty ListArray.
ListArray<T>(T0,T1,T2...Tn)
Make ListArray with T0 - Tn.
(* = Readonly)
- *
Count
Return length of ListArray.
- *
Length
Return length of ListArray.
Item[Int32]
Return content of ListArray.
Add(T)
- Void
Add data to ListArray.
Remove(Int32)
- Void
Delete data from ListArray.
ToArray()
T[]
Convert ListArray to System.Array.
ToList()
List<T>
Convert ListArray to List.
using System;
using StructCollection.Array;
class MainClass {
public static void Main(string[] args){
var la = new ListArray<ListArray<decimal>>();
for(int i = 0; i < 10; i++){
la.Add(new ListArray<decimal>());
for(int j = 0; j < 10; j++){
la[i].Add(i * j);
}
}
}
}
Make array-like list.
Array<T>()
Make empty Array.
Array<T>(T0,T1,T2...Tn)
Make Array with T0 - Tn.
(* = Readonly)
- *
Count
Return length of Array.
- *
Length
Return length of Array.
Item[Int32]
Return content of Array.
Add(T)
- Void
Add data to Array.
Remove(Int32)
- Void
Delete data from Array.
ToArray()
T[]
Convert Array to System.Array.
ToList()
List<T>
Convert Array to List.
using System;
using StructCollection;
class MainClass {
public static void Main(string[] args){
var la = new Template.Array<Template.Array<decimal>>();
for(int i = 0; i < 10; i++){
la.Add(new Template.Array<decimal>());
for(int j = 0; j < 10; j++){
la[i].Add(i * j);
}
}
}
}