2 writes to _storage
System.Data.Common (2)
System\Data\DataColumn.cs (2)
1117
_storage
= null; // empty out storage for reuse.
1744
_storage
??= DataStorage.CreateStorage(this, _dataType, _storageType);
48 references to _storage
System.Data.Common (48)
System\Data\DataColumn.cs (48)
651
if (
_storage
!= null)
653
_defaultValue =
_storage
._nullValue;
847
internal bool HasData =>
_storage
!= null;
859
Debug.Assert(null !=
_storage
, "no storage");
860
return
_storage
._isCloneable;
868
Debug.Assert(null !=
_storage
, "no storage");
869
return
_storage
._isStringType;
877
Debug.Assert(null !=
_storage
, "no storage");
878
return
_storage
._isValueType;
1131
Debug.Assert(null !=
_storage
, "null storage");
1132
return
_storage
.Get(record);
1139
Debug.Assert(null !=
_storage
, "no storage");
1141
_storage
.Set(record, value);
1152
if (!
_storage
.IsNull(record))
1154
AutoInc.SetCurrentAndIncrement(
_storage
.Get(record));
1172
Debug.Assert(null !=
_storage
, "no storage");
1173
_storage
.Set(record, DefaultValue);
1183
Debug.Assert(null !=
_storage
, "no storage");
1184
_storage
.Set(record, value);
1201
Debug.Assert(null !=
_storage
, "no storage");
1202
_storage
.Set(record,
_storage
._nullValue);
1407
if (
_storage
== null)
1414
if (_sortIndex.IsKeyInIndex(
_storage
._nullValue))
1452
Debug.Assert(null !=
_storage
, "no storage");
1453
if (
_storage
.IsNull(row.GetDefaultRecord()))
1472
Debug.Assert(null !=
_storage
, "null storage");
1473
return
_storage
.Compare(record1, record2);
1485
Type rightType =
_storage
!.Get(record1).GetType();
1489
return (string)
_storage
.Get(record1) == (string)value;
1503
Debug.Assert(null !=
_storage
, "null storage");
1504
return
_storage
.CompareValueTo(record1, value);
1509
Debug.Assert(null !=
_storage
, "null storage");
1510
return
_storage
.ConvertValue(value);
1515
Debug.Assert(null !=
_storage
, "null storage");
1516
_storage
.Copy(srcRecordNo, dstRecordNo);
1583
if (
_storage
== null)
1587
return
_storage
.Aggregate(records, kind);
1592
Debug.Assert(null !=
_storage
, "no storage");
1593
return
_storage
.GetStringLength(record);
1602
Debug.Assert(null !=
_storage
, "no storage");
1603
_storage
.Set(record, value);
1625
internal bool IsCustomType =>
_storage
!= null ?
1626
_storage
._isCustomDefinedType :
1637
Debug.Assert(null !=
_storage
, "no storage");
1638
return
_storage
.IsNull(record);
1796
Debug.Assert(null !=
_storage
, "no storage");
1797
_storage
.CopyValueInternal(record, store, nullbits, storeIndex);