FastQuant.DataSeries.Update C# (CSharp) Méthode

Update() public méthode

public Update ( long index, DataObject obj ) : void
index long
obj DataObject
Résultat void
        public virtual void Update(long index, DataObject obj)
        {
            lock (Sync)
            {
                var dataObject = Get(index);
                if (dataObject.DateTime != obj.DateTime)
                {
                    Console.WriteLine("DataSeries::Update Can not update object with different datetime");
                    return;
                }

                bool changed = this.readKey.changed;
                this.readKey.UpdateObject((int) (index - this.readKey.index1), obj);
                if (!changed)
                    WriteKey(this.readKey);
                this.file.isModified = true;
            }
        }