예제 #1
0
     > GetColorSchemeRegistryItemsAsync(CancellationToken arg) =>
 SpecializedTasks.FromResult(
     _colorSchemes.ToImmutableDictionary(
         kvp => kvp.Key,
         kvp => RegistryItemConverter.Convert(kvp.Value)
         )
     );
예제 #2
0
 private Task <ImmutableDictionary <SchemeName, ImmutableArray <RegistryItem> > > GetColorSchemeRegistryItemsAsync(CancellationToken arg)
 {
     return(SpecializedTasks.FromResult(_colorSchemes.ToImmutableDictionary(kvp => kvp.Key, kvp => RegistryItemConverter.Convert(kvp.Value))));
 }