7 writes to _value
System.Data.Common (7)
System\Data\SQLTypes\SQLBinary.cs (7)
28
_value
= null;
32
_value
= new byte[value.Length];
44
_value
= value;
421
_value
= null;
428
_value
= Array.Empty<byte>();
436
_value
= Array.Empty<byte>();
440
_value
= Convert.FromBase64String(base64);
17 references to _value
System.Data.Common (17)
System\Data\SQLTypes\SQLBinary.cs (17)
33
value.CopyTo(
_value
, 0);
51
public bool IsNull =>
_value
is null;
61
if (
_value
is null)
66
var value = new byte[
_value
.Length];
67
_value
.CopyTo(value, 0);
77
if (
_value
is null)
81
return
_value
[index];
93
if (
_value
!= null)
95
return
_value
.Length;
118
public override string ToString() =>
_value
is null ? SQLResource.NullString : $"SqlBinary({
_value
.Length})";
401
if (
_value
is null)
405
int cbLen =
_value
.Length;
406
while (cbLen > 0 &&
_value
[cbLen - 1] == 0)
409
return HashByteArray(
_value
, cbLen);
448
if (
_value
is null)
454
writer.WriteString(Convert.ToBase64String(
_value
));