Class ContextListProperty<T>
- Namespace
- KSP.Api.CoreTypes
- Assembly
- Assembly-CSharp.dll
public class ContextListProperty<T> : IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IContextListProperty where T : IDataContext
Type Parameters
T
- Inheritance
-
ContextListProperty<T>
- Implements
-
- Inherited Members
-
- Extension Methods
-
Enumerable.GroupBy<TSource, TKey, TElement, TResult>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>, TResult>)
Enumerable.GroupBy<TSource, TKey, TElement, TResult>(IEnumerable<TSource>, Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>)
Enumerable.GroupJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>, TResult>)
Enumerable.GroupJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)
Enumerable.Join<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>)
Enumerable.Join<TOuter, TInner, TKey, TResult>(IEnumerable<TOuter>, IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>, IEqualityComparer<TKey>)
Constructors
ContextListProperty(IDataContextReadonly)
public ContextListProperty(IDataContextReadonly source)
Parameters
source IDataContextReadonly
ContextListProperty(IDataContextReadonly, IEnumerable<T>)
public ContextListProperty(IDataContextReadonly source, IEnumerable<T> values)
Parameters
source IDataContextReadonly
values IEnumerable<T>
Properties
Count
public int Count { get; }
Property Value
- int
Data
public IReadOnlyList<IDataContextReadonly> Data { get; }
Property Value
- IReadOnlyList<IDataContextReadonly>
HierarchyParent
public IDataContextReadonly HierarchyParent { get; }
Property Value
- IDataContextReadonly
IsReadOnly
public bool IsReadOnly { get; }
Property Value
- bool
this[int]
public T this[int index] { get; set; }
Parameters
index int
Property Value
- T
Methods
Add(T)
Parameters
item T
AddInternal(T, bool)
public void AddInternal(T item, bool fireEvent = true)
Parameters
item T
fireEvent bool
AddRange(IEnumerable<T>)
public void AddRange(IEnumerable<T> collection)
Parameters
collection IEnumerable<T>
AddRangeInternal(IEnumerable<T>, bool)
public void AddRangeInternal(IEnumerable<T> collection, bool fireEvent = true)
Parameters
collection IEnumerable<T>
fireEvent bool
Clear()
ClearInternal(bool)
public void ClearInternal(bool fireEvent = true)
Parameters
fireEvent bool
Contains(T)
public bool Contains(T item)
Parameters
item T
Returns
- bool
CopyTo(T[], int)
public void CopyTo(T[] array, int arrayIndex)
Parameters
array T[]
arrayIndex int
GetEnumerator()
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
GetIndexedElement(int, string)
public IDataContextReadonly GetIndexedElement(int index, string indexKey = "index")
Parameters
index int
indexKey string
Returns
- IDataContextReadonly
IndexOf(T)
public int IndexOf(T item)
Parameters
item T
Returns
- int
Insert(int, T)
public void Insert(int index, T item)
Parameters
index int
item T
InsertInternal(int, T, bool)
public void InsertInternal(int index, T item, bool fireEvent = true)
Parameters
index int
item T
fireEvent bool
InvokeOnListChanged(bool)
public void InvokeOnListChanged(bool fireEvent = true)
Parameters
fireEvent bool
Move(int, int)
public void Move(int indexFrom, int indexTo)
Parameters
indexFrom int
indexTo int
MoveInternal(int, int, bool)
public void MoveInternal(int indexFrom, int indexTo, bool fireEvent = true)
Parameters
indexFrom int
indexTo int
fireEvent bool
Pop()
Returns
- T
PopInternal(bool)
public T PopInternal(bool fireEvent = true)
Parameters
fireEvent bool
Returns
- T
Push(T)
Parameters
item T
PushInternal(T, bool)
public void PushInternal(T item, bool fireEvent = true)
Parameters
item T
fireEvent bool
Remove(T)
public bool Remove(T item)
Parameters
item T
Returns
- bool
RemoveAt(int)
public void RemoveAt(int index)
Parameters
index int
RemoveAtInternal(int, bool)
public void RemoveAtInternal(int index, bool fireEvent = true)
Parameters
index int
fireEvent bool
RemoveInternal(T, bool)
public bool RemoveInternal(T item, bool fireEvent = true)
Parameters
item T
fireEvent bool
Returns
- bool
Set(int, T)
public void Set(int index, T value)
Parameters
index int
value T
SetInternal(int, T, bool)
public void SetInternal(int index, T value, bool fireEvent = true)
Parameters
index int
value T
fireEvent bool
Sort()
Sort(IComparer<T>)
public void Sort(IComparer<T> comparer)
Parameters
comparer IComparer<T>
Sort(Comparison<T>)
public void Sort(Comparison<T> comparison)
Parameters
comparison Comparison<T>
Sort(int, int, IComparer<T>)
public void Sort(int index, int count, IComparer<T> comparer)
Parameters
index int
count int
comparer IComparer<T>
SortInternal(bool)
public void SortInternal(bool fireEvent = true)
Parameters
fireEvent bool
SortInternal(IComparer<T>, bool)
public void SortInternal(IComparer<T> comparer, bool fireEvent = true)
Parameters
comparer IComparer<T>
fireEvent bool
SortInternal(Comparison<T>, bool)
public void SortInternal(Comparison<T> comparison, bool fireEvent = true)
Parameters
comparison Comparison<T>
fireEvent bool
SortInternal(int, int, IComparer<T>, bool)
public void SortInternal(int index, int count, IComparer<T> comparer, bool fireEvent = true)
Parameters
index int
count int
comparer IComparer<T>
fireEvent bool
Events
OnListChanged
public event Action OnListChanged
Event Type
- Action