Class TypeTable
Represents a table with System.Type objects.
Inheritance
System.Object
TypeTable
Implements
System.Collections.Generic.IEnumerable<System.Type>
System.Collections.IEnumerable
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.Expressions.Optimizers.dll
Syntax
public class TypeTable : Object, IEnumerable<Type>, IEnumerable
Constructors
TypeTable()
Declaration
public TypeTable()
Methods
Add(TypeTable)
Copies the entries in the specified type table
to the current table.
Declaration
public void Add(TypeTable table)
Parameters
Type | Name | Description |
---|---|---|
TypeTable | table | The type table whose entries to copy. |
Add(Type)
Adds the specified type
to the table.
Declaration
public void Add(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to add to the table. |
Contains(Type)
Checks if the specified type
is present in the table.
Declaration
public bool Contains(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to check. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetEnumerator()
Gets a sequence of types in the current type table.
Declaration
public IEnumerator<Type> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Type> | A sequence of types in the current type table. |
ToReadOnly()
Marks the current type table as read-only, preventing subsequent mutation.
Declaration
public TypeTable ToReadOnly()
Returns
Type | Description |
---|---|
TypeTable | The current type table after being marked as read-only. |
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable