FastQuant.AccountDataManager.GetTable C# (CSharp) Méthode

GetTable() private méthode

private GetTable ( byte providerId, byte route, bool addNew ) : AccountDataTable
providerId byte
route byte
addNew bool
Résultat AccountDataTable
        private AccountDataTable GetTable(byte providerId, byte route, bool addNew)
        {
            var key = providerId * 256 + route;
            AccountDataTable value;
            lock (this.tables)
            {
                if (!this.tables.TryGetValue(key, out value))
                {
                    if (addNew)
                    {
                        value = new AccountDataTable();
                        this.tables.Add(key, value);
                    }
                    else
                    {
                        value = null;
                    }
                }
            }
            return value;
        }