Class StructuralTypeSlimReference
A mutable structural type slim.
Implements
System.IEquatable<TypeSlim>
Inherited Members
Namespace: System.Reflection
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public abstract class StructuralTypeSlimReference : StructuralTypeSlim, IEquatable<TypeSlim>
Properties
Properties
Gets the members of the structural type.
Declaration
public override ReadOnlyCollection<PropertyInfoSlim> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<PropertyInfoSlim> |
Overrides
Methods
AddProperty(PropertyInfoSlim)
Adds a property to the structural type.
Declaration
public void AddProperty(PropertyInfoSlim property)
Parameters
Type | Name | Description |
---|---|---|
PropertyInfoSlim | property | The property to add. |
Create(Boolean, StructuralTypeSlimKind)
Creates a new structural type that's initially mutable.
Declaration
public static StructuralTypeSlimReference Create(bool hasValueEqualitySemantics, StructuralTypeSlimKind kind)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | hasValueEqualitySemantics | true if the structural type has value equality semantics, false otherwise. |
StructuralTypeSlimKind | kind | The kind of structural type. |
Returns
Type | Description |
---|---|
StructuralTypeSlimReference | A new structural type that's initially mutable. |
Create(Boolean, StructuralTypeSlimKind, Int32)
Creates a new structural type that's initially mutable.
Declaration
public static StructuralTypeSlimReference Create(bool hasValueEqualitySemantics, StructuralTypeSlimKind kind, int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | hasValueEqualitySemantics | true if the structural type has value equality semantics, false otherwise. |
StructuralTypeSlimKind | kind | The kind of structural type. |
System.Int32 | capacity | The number of properties expected. |
Returns
Type | Description |
---|---|
StructuralTypeSlimReference | A new structural type that's initially mutable. |
Freeze()
Causes the structural type to no longer be mutable.
Declaration
public void Freeze()
Implements
System.IEquatable<>