TypeCollection Class

Namespace
Kampute.DocToolkit.Collections
Assembly
  • Kampute.DocToolkit.dll

Definition

Represents a read-only collection of type models in a documentation context.
public class TypeCollection : IReadOnlyTypeCollection
Inheritance
Implements

Remarks

This class provides immutable access to type model instances in a documentation context. It categorizes types into classes, structs, interfaces, enums, and delegates for easy retrieval and enumeration.

Constructors

TypeCollection(IEnumerable<TypeModel>)Initializes a new instance of the TypeCollection class.

Fields

EmptyGets an empty TypeCollection instance.

Properties

ClassesGets all class type models in the collection.
CountGets the total number of type models in the collection.
DelegatesGets all delegate type models in the collection.
EnumsGets all enum type models in the collection.
InterfacesGets all interface type models in the collection.
StructsGets all struct type models in the collection.

Methods

GetEnumerator()Returns an enumerator that iterates through the collection of type models.

Explicit Interface Implementations

IEnumerable.GetEnumerator()Returns an enumerator that iterates through the collection of type models.