4 instantiations of SqlBytes
System.Data.Common (4)
System\Data\Common\SQLConvert.cs (1)
575return new SqlBytes(Convert.FromBase64String((string)value));
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
108return (new SqlBytes((SqlBinary)tmp));
System\Data\SQLTypes\SQLBytes.cs (2)
450return new SqlBytes(value); 596return 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)
51typeof(SqlBytes),
System\Data\Common\DataStorage.cs (1)
98typeof(SqlBytes),
System\Data\Common\SQLConvert.cs (5)
327public static SqlBytes ConvertToSqlBytes(object value) 332return SqlBytes.Null; 338StorageType.SqlBytes => (SqlBytes)value, 339_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBytes)), 663return Convert.ToBase64String(((SqlBytes)value).Value);
System\Data\Common\SQLTypes\SQLBytesStorage.cs (12)
16private SqlBytes[] _values = default!; // Late-initialized 19: base(column, typeof(SqlBytes), SqlBytes.Null, SqlBytes.Null, StorageType.SqlBytes) 48throw ExprException.Overflow(typeof(SqlBytes)); 82_values[record] = SqlBytes.Null; 86_values[record] = (SqlBytes)value; 115Debug.Assert((value.GetType() == typeof(SqlBytes)), "wrong input type"); 128return new SqlBytes[recordCount]; 133SqlBytes[] typedStore = (SqlBytes[])store; 140_values = (SqlBytes[])store;
System\Data\SQLTypes\SQLBytes.cs (5)
442public static explicit operator SqlBinary(SqlBytes value) 448public static explicit operator SqlBytes(SqlBinary value) 592public static SqlBytes Null 612private SqlBytes _sb; // the SqlBytes object 619internal StreamOnSqlBytes(SqlBytes sb)
System\Data\TypeLimiter.cs (1)
154typeof(SqlBytes),
System\Data\xmlsaver.cs (1)
233if (type == typeof(byte[]) || type == typeof(SqlBytes))