Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Set()

override void System.Data.Common.Int16Storage.Set ( int record,
object value )
inline

Definition at line 212 of file Int16Storage.cs.

213 {
214 if (_nullValue == value)
215 {
216 _values[record] = 0;
217 SetNullBit(record, flag: true);
218 }
219 else
220 {
221 _values[record] = ((IConvertible)value).ToInt16(base.FormatProvider);
222 SetNullBit(record, flag: false);
223 }
224 }
void SetNullBit(int recordNo, bool flag)

References System.Data.Common.DataStorage._nullValue, System.Data.Common.Int16Storage._values, System.Xml.Dictionary, System.Data.Common.DataStorage.SetNullBit(), and System.value.