Table of Contents

Method CopyToDBNullAsNull

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

CopyToDBNullAsNull(ReadOnlySpan<object?>, Span<object?>)

Copies the contents of the values span to the target span with any DBNull values converted to null.

public static Span<object?> CopyToDBNullAsNull(this ReadOnlySpan<object?> values, Span<object?> target)

Parameters

values ReadOnlySpan<object>

The source values.

target Span<object>

The span that receives the values.

Returns

Span<object>

The target span.

Exceptions

IndexOutOfRangeException

target is shorter than values.

CopyToDBNullAsNull(Span<object?>, Span<object?>)

Copies the contents of the values span to the target span with any DBNull values converted to null.

public static Span<object?> CopyToDBNullAsNull(this Span<object?> values, Span<object?> target)

Parameters

values Span<object>

The source values.

target Span<object>

The span that receives the values.

Returns

Span<object>

The target span.

Exceptions

IndexOutOfRangeException

target is shorter than values.

CopyToDBNullAsNull(ReadOnlySpan<object?>, Memory<object?>)

Copies the contents of the values span to the target span with any DBNull values converted to null.

public static Span<object?> CopyToDBNullAsNull(this ReadOnlySpan<object?> values, Memory<object?> target)

Parameters

values ReadOnlySpan<object>

The source values.

target Memory<object>

The span that receives the values.

Returns

Span<object>

The target span.

Exceptions

IndexOutOfRangeException

target is shorter than values.

CopyToDBNullAsNull(Span<object?>, Memory<object?>)

Copies the contents of the values span to the target span with any DBNull values converted to null.

public static Span<object?> CopyToDBNullAsNull(this Span<object?> values, Memory<object?> target)

Parameters

values Span<object>

The source values.

target Memory<object>

The span that receives the values.

Returns

Span<object>

The target span.

Exceptions

IndexOutOfRangeException

target is shorter than values.