4 instantiations of SqlChars
System.Data.Common (4)
System\Data\Common\SQLConvert.cs (1)
577
return new
SqlChars
(((string)value).ToCharArray());
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
112
return (new
SqlChars
((SqlString)tmp));
System\Data\SQLTypes\SQLChars.cs (2)
415
return new
SqlChars
(value);
548
return new
SqlChars
((char[]?)null);
28 references to SqlChars
netstandard (1)
netstandard.cs (1)
577
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlChars
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
233
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlChars
))]
System.Data.Common (26)
System\Data\ColumnTypeConverter.cs (1)
52
typeof(
SqlChars
),
System\Data\Common\DataStorage.cs (1)
99
typeof(
SqlChars
),
System\Data\Common\SQLConvert.cs (5)
311
public static
SqlChars
ConvertToSqlChars(object value)
316
return
SqlChars
.Null;
322
StorageType.SqlChars => (
SqlChars
)value,
323
_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(
SqlChars
)),
665
return new string(((
SqlChars
)value).Value);
System\Data\Common\SQLTypes\SQLCharsStorage.cs (12)
16
private
SqlChars
[] _values = default!; // Late-initialized
19
: base(column, typeof(
SqlChars
),
SqlChars
.Null,
SqlChars
.Null, StorageType.SqlChars)
48
throw ExprException.Overflow(typeof(
SqlChars
));
84
_values[record] =
SqlChars
.Null;
88
_values[record] = (
SqlChars
)value;
120
Debug.Assert((value.GetType() == typeof(
SqlChars
)), "wrong input type");
133
return new
SqlChars
[recordCount];
138
SqlChars
[] typedStore = (
SqlChars
[])store;
145
_values = (
SqlChars
[])store;
System\Data\SQLTypes\SQLChars.cs (5)
407
public static explicit operator SqlString(
SqlChars
value)
413
public static explicit operator
SqlChars
(SqlString value)
544
public static
SqlChars
Null
562
private readonly
SqlChars
_sqlchars; // the SqlChars object
569
internal SqlStreamChars(
SqlChars
s)
System\Data\TypeLimiter.cs (1)
155
typeof(
SqlChars
),
System\Data\xmlsaver.cs (1)
271
if (type == typeof(string) || type == typeof(SqlGuid) || type == typeof(SqlString) || type == typeof(
SqlChars
))