Class MappedList
IList wrapper that remaps values via a Func (eg for index maps)
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class MappedList : IList<int>, ICollection<int>, IEnumerable<int>, IEnumerable
Constructors
MappedList(IList<Int32>, Int32[])
Declaration
public MappedList(IList<int> list, int[] map)
Parameters
Fields
BaseList
Declaration
public IList<int> BaseList
Field Value
MapF
Declaration
public Func<int, int> MapF
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Declaration
public int this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
Add(Int32)
Declaration
public void Add(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Clear()
Declaration
Contains(Int32)
Declaration
public bool Contains(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
CopyTo(Int32[], Int32)
Declaration
public void CopyTo(int[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
Int32[] |
array |
|
Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
IndexOf(Int32)
Declaration
public int IndexOf(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
Insert(Int32, Int32)
Declaration
public void Insert(int index, int item)
Parameters
Remove(Int32)
Declaration
public bool Remove(int item)
Parameters
Type |
Name |
Description |
Int32 |
item |
|
Returns
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Implements