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;
}