public static ResourceManagerFluent Get(this ResourceManager m, string resourceId = null) { lock (FluentCache) { if (!FluentCache.TryGetValue(m, out var fluent)) { fluent = new ResourceManagerFluent(m); FluentCache[m] = fluent; } return(fluent); } }
public (string, string) AsStrings() { ResourceManagerFluent invariant = new ResourceManagerFluent(_mgmr); ResourceManagerFluent current = new ResourceManagerFluent(_mgmr); var t = (current.With(_param).Resource(_id).AsString(), invariant.Resource(_id).AsInvariant().With(_param).AsString()); _id = null; _param = null; _asInvariant = false; return(t); }