ResourceNamesCache Class

An implementation of Microsoft.Extensions.Localization.IResourceNamesCache backed by a System.Collections.Concurrent.ConcurrentDictionary`2.

Namespace
Microsoft.Extensions.Localization
Assemblies
  • Microsoft.Extensions.Localization

Syntax

public class ResourceNamesCache : IResourceNamesCache
class Microsoft.Extensions.Localization.ResourceNamesCache

Methods

GetOrAdd(System.String, System.Func<System.String, System.Collections.Generic.IList<System.String>>)
Return type:System.Collections.Generic.IList<System.String>
public IList<string> GetOrAdd(string name, Func<string, IList<string>> valueFactory)