4 instantiations of SqlBytes
System.Data.Common (4)
System\Data\Common\SQLConvert.cs (1)
575
return new
SqlBytes
(Convert.FromBase64String((string)value));
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
109
return (new
SqlBytes
((SqlBinary)tmp));
System\Data\SQLTypes\SQLBytes.cs (2)
450
return new
SqlBytes
(value);
596
return new
SqlBytes
((byte[]?)null);
28 references to SqlBytes
netstandard (1)
netstandard.cs (1)
576
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlBytes
))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
232
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.
SqlBytes
))]
System.Data.Common (26)
System\Data\ColumnTypeConverter.cs (1)
51
typeof(
SqlBytes
),
System\Data\Common\DataStorage.cs (1)
98
typeof(
SqlBytes
),
System\Data\Common\SQLConvert.cs (5)
327
public static
SqlBytes
ConvertToSqlBytes(object value)
332
return
SqlBytes
.Null;
338
StorageType.SqlBytes => (
SqlBytes
)value,
339
_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(
SqlBytes
)),
663
return Convert.ToBase64String(((
SqlBytes
)value).Value);
System\Data\Common\SQLTypes\SQLBytesStorage.cs (12)
16
private
SqlBytes
[] _values = default!; // Late-initialized
19
: base(column, typeof(
SqlBytes
),
SqlBytes
.Null,
SqlBytes
.Null, StorageType.SqlBytes)
48
throw ExprException.Overflow(typeof(
SqlBytes
));
82
_values[record] =
SqlBytes
.Null;
86
_values[record] = (
SqlBytes
)value;
117
Debug.Assert((value.GetType() == typeof(
SqlBytes
)), "wrong input type");
130
return new
SqlBytes
[recordCount];
135
SqlBytes
[] typedStore = (
SqlBytes
[])store;
142
_values = (
SqlBytes
[])store;
System\Data\SQLTypes\SQLBytes.cs (5)
442
public static explicit operator SqlBinary(
SqlBytes
value)
448
public static explicit operator
SqlBytes
(SqlBinary value)
592
public static
SqlBytes
Null
612
private
SqlBytes
_sb; // the SqlBytes object
619
internal StreamOnSqlBytes(
SqlBytes
sb)
System\Data\TypeLimiter.cs (1)
154
typeof(
SqlBytes
),
System\Data\xmlsaver.cs (1)
233
if (type == typeof(byte[]) || type == typeof(
SqlBytes
))