Table of Contents

Struct SqlObjectBuilderArray<T>

Namespace
LfrlAnvil.Sql.Objects.Builders
Assembly
LfrlAnvil.Sql.Core.dll

Represents an array of ISqlObjectBuilder instances.

public readonly struct SqlObjectBuilderArray<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class, ISqlObjectBuilder

Type Parameters

T

SQL object builder type.

Implements
Inherited Members

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

this[int]

Gets the element at the specified index in the read-only list.

public T this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

T

The element at the specified index in the read-only list.

Methods

From<TSource>(ReadOnlyArray<TSource>)

Creates a new SqlObjectBuilderArray<T> instance.

[Pure]
public static SqlObjectBuilderArray<T> From<TSource>(ReadOnlyArray<TSource> source) where TSource : SqlObjectBuilder

Parameters

source ReadOnlyArray<TSource>

Source collection.

Returns

SqlObjectBuilderArray<T>

New SqlObjectBuilderArray<T> instance.

Type Parameters

TSource

Source SQL object builder type.

Remarks

Be careful while using this method, because it does not actually validate the type's correctness.

GetEnumerator()

Creates a new SqlObjectBuilderArray<T>.Enumerator instance for this array.

[Pure]
public SqlObjectBuilderArray<T>.Enumerator GetEnumerator()

Returns

SqlObjectBuilderArray<T>.Enumerator

New SqlObjectBuilderArray<T>.Enumerator instance.

UnsafeReinterpretAs<TDestination>()

Converts this instance to another type that implements the ISqlObjectBuilder interface.

[Pure]
public SqlObjectBuilderArray<TDestination> UnsafeReinterpretAs<TDestination>() where TDestination : class, ISqlObjectBuilder

Returns

SqlObjectBuilderArray<TDestination>

New SqlObjectBuilderArray<T> instance.

Type Parameters

TDestination

SQL object builder type to convert to.

Remarks

Be careful while using this method, because it does not actually validate the type's correctness.