Struct SqlDatabaseObjectsSet<T>
Represents a set of SqlObjectBuilder instances.
public readonly struct SqlDatabaseObjectsSet<T> where T : SqlObjectBuilder
Type Parameters
T
SQL object builder type.
- Inherited Members
Properties
Count
Number of elements in this set.
public int Count { get; }
Property Value
Methods
Add(T)
Attempts to add the provided obj
to this set.
public bool Add(T obj)
Parameters
obj
TObject to add.
Returns
- bool
true when object was added, otherwise false.
Clear()
Removes all objects from this set.
public void Clear()
Contains(T)
Checks whether or not the provided obj
exists in this set.
[Pure]
public bool Contains(T obj)
Parameters
obj
TObject to check.
Returns
- bool
true when object exists, otherwise false.
Create()
Creates a new empty SqlDatabaseObjectsSet<T> instance.
[Pure]
public static SqlDatabaseObjectsSet<T> Create()
Returns
- SqlDatabaseObjectsSet<T>
New SqlDatabaseObjectsSet<T> instance.
GetEnumerator()
Creates a new enumerator for this set.
[Pure]
public Dictionary<ulong, T>.ValueCollection.Enumerator GetEnumerator()
Returns
- Dictionary<ulong, T>.ValueCollection.Enumerator
New enumerator.
Remove(T)
Attempts to remove the provided obj
from this set.
public bool Remove(T obj)
Parameters
obj
TObject to remove.
Returns
- bool
true when object was removed, otherwise false.