public override Task InitData(IDataProviderService dataProvider) { return(Task.Run(() => { dictionary = dictionary ?? new Dictionary <string, int>(dataProvider.GetData()); })); }
public override Task InitData(IDataProviderService dataProvider) { return(Task.Run(() => { sortedDictionary = sortedDictionary ?? dataProvider.GetData().ToList(); })); }
public override Task InitData(IDataProviderService dataProvider) { return(Task.Run(() => { // строим дерево _tree = _tree ?? TreeHelper.BuildTree(dataProvider.GetData().ToArray()); })); }