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

◆ Set()

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

Definition at line 199 of file DoubleStorage.cs.

200 {
201 if (_nullValue == value)
202 {
203 _values[record] = 0.0;
204 SetNullBit(record, flag: true);
205 }
206 else
207 {
208 _values[record] = ((IConvertible)value).ToDouble(base.FormatProvider);
209 SetNullBit(record, flag: false);
210 }
211 }
void SetNullBit(int recordNo, bool flag)

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