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

◆ Set()

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

Definition at line 202 of file ByteStorage.cs.

203 {
204 if (_nullValue == value)
205 {
206 _values[record] = 0;
207 SetNullBit(record, flag: true);
208 }
209 else
210 {
211 _values[record] = ((IConvertible)value).ToByte(base.FormatProvider);
212 SetNullBit(record, flag: false);
213 }
214 }
void SetNullBit(int recordNo, bool flag)

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