<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview6.19303.8" />

SqlChars

public sealed class SqlChars : INullable
SqlChars is a mutable reference type that wraps a Char array or a SqlString instance.
public static SqlChars Null { get; }

Returns a null instance of this SqlChars.

public char[] Buffer { get; }

Returns a reference to the internal buffer.

public bool IsNull { get; }

Gets a Boolean value that indicates whether this SqlChars is null.

public char this[long offset] { get; set; }

Gets or sets the SqlChars instance at the specified index.

public long Length { get; }

Gets the length of the value that is contained in the SqlChars instance.

public long MaxLength { get; }

Gets the maximum length in two-byte characters of the value the internal buffer can hold.

public char[] Value { get; }

Returns a managed copy of the value held by this SqlChars.

public SqlChars()

Initializes a new instance of the SqlChars class.

public SqlChars(char[] buffer)

Initializes a new instance of the SqlChars class based on the specified character array.

public SqlChars(SqlString value)

Initializes a new instance of the SqlChars class based on the specified SqlString value.

public static SqlString op_Explicit(SqlChars value)

Converts a SqlChars structure to a SqlString structure.

public static SqlChars op_Explicit(SqlString value)

Converts a SqlString structure to a SqlChars structure.

public long Read(long offset, char[] buffer, int offsetInBuffer, int count)

Copies characters from this SqlChars instance to the passed-in buffer and returns the number of copied characters.

public void SetLength(long value)

Sets the length of this SqlChars instance.

public void SetNull()

Sets this SqlChars instance to null.

Converts this SqlChars instance to its equivalent SqlString representation.

public void Write(long offset, char[] buffer, int offsetInBuffer, int count)

Copies characters from the passed-in buffer to this SqlChars instance.