8 references to GetOrAdd
Microsoft.Maui.Controls.Build.Tasks (8)
XamlCache.cs (8)
33 GetOrAdd(_xmlnsDefinitions, module, valueFactory); 36 GetOrAdd(_resolvedTypes, typeReference, t => t.Resolve()); 39 GetOrAdd(_fieldReferenceCache, key, valueFactory); 42 GetOrAdd(_typeReferenceCache, (module, type.ToString()), x => x.module.ImportReference(x.module.GetTypeDefinition(this, type))); 45 GetOrAdd(_typeReferenceCache, (module, typeKey), valueFactory); 48 GetOrAdd(_methodReferenceCache, (module, methodRefKey), valueFactory); 51 GetOrAdd(_typeDefinitionCache, (module, type), valueFactory); 54 GetOrAdd(_resourceNamesInUse, variableDefinition, _ => new HashSet<string>(StringComparer.Ordinal));