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

Clear() public méthode

public Clear ( ) : void
Résultat void
        public void Clear()
        {
            lock (Sync)
            {
                this.cache = this.cache ?? ReadCache();
                if (this.position1 != -1)
                {
                    var key = ReadKey(this.position1);
                    while (true)
                    {
                        this.file.DeleteKey(key, false, true);
                        if (key.next == -1)
                            break;
                        key = ReadKey(key.next);
                    }
                }
                Count = 0;
                this.bufferCount = 0;
                DateTime1 = new DateTime(0);
                DateTime2 = new DateTime(0);
                this.position1 = -1;
                this.position2 = -1;
                this.readOpened = false;
                this.writeOpened = false;
                this.cache = new IdArray<DataKey>(4096);
                this.cacheKey.obj = new DataKeyIdArray(this.cache);
                this.readKey = null;
                this.writeKey = null;
                this.deleteKey = null;
                this.insertKey = null;
                this.changed = true;
                Flush();
            }
        }