Interface IColumns
Represents set of Column(s), which is specially optimized for single item set and immutability.
Inherited Members
System.Collections.Generic.IReadOnlyCollection<DevZest.Data.Column>.Count
System.Collections.Generic.IEnumerable<DevZest.Data.Column>.GetEnumerator()
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public interface IColumns : IReadOnlyCollection<Column>, IEnumerable<Column>, IEnumerable
Remarks
Column class implements IColumns, so a Column instance can represent both the column itself and a single item set of column. This can improve performance by avoiding object creation.
IColumns can be sealed as immutable, any change to IColumns may or may not create a new IColumns instance. Consumer of IColumns should always assume it's immutable.
Properties
Name | Description |
---|---|
IsSealed | Gets a value indicates whether this set is sealed. |
Methods
Name | Description |
---|---|
Add(Column) | Adds the specified Column into this set. |
Clear() | Removes all the Columns from this set. |
Contains(Column) | Determines whether this set contains a specified Column. |
Remove(Column) | Removes the specified Column from this set. |
Seal() | Seals this set as immutable. |