Class ReadOnlyDefList<T>
- Namespace
- Tripous
- Assembly
- Tripous.dll
Provides a read-only wrapper around a descriptor list.
public class ReadOnlyDefList<T> where T : IDef
Type Parameters
T
- Inheritance
-
ReadOnlyDefList<T>
- Inherited Members
- Extension Methods
Constructors
ReadOnlyDefList(DefList<T>)
Constructor.
public ReadOnlyDefList(DefList<T> DefList)
Parameters
DefListDefList<T>
Properties
Count
Gets the number of descriptors in the wrapped list.
public int Count { get; }
Property Value
this[string]
Gets a descriptor by name.
public T this[string Name] { get; }
Parameters
Namestring
Property Value
- T
Methods
Contains(string)
Returns true when a descriptor with the specified name exists.
public bool Contains(string Name)
Parameters
Namestring
Returns
Find(string)
Finds and returns a descriptor by name, if any; otherwise returns null.
public T Find(string Name)
Parameters
Namestring
Returns
- T
Get(string)
Returns a descriptor by name. Throws an exception when the descriptor is not found.
public T Get(string Name)
Parameters
Namestring
Returns
- T
GetEnumerator()
Returns an enumerator for the wrapped descriptor list.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>