Table of Contents

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

DefList DefList<T>

Properties

Count

Gets the number of descriptors in the wrapped list.

public int Count { get; }

Property Value

int

this[string]

Gets a descriptor by name.

public T this[string Name] { get; }

Parameters

Name string

Property Value

T

Methods

Contains(string)

Returns true when a descriptor with the specified name exists.

public bool Contains(string Name)

Parameters

Name string

Returns

bool

Find(string)

Finds and returns a descriptor by name, if any; otherwise returns null.

public T Find(string Name)

Parameters

Name string

Returns

T

Get(string)

Returns a descriptor by name. Throws an exception when the descriptor is not found.

public T Get(string Name)

Parameters

Name string

Returns

T

GetEnumerator()

Returns an enumerator for the wrapped descriptor list.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>