5 references to TryAdd
Microsoft.TemplateEngine.Edge (5)
Installers\NuGet\NuGetManagedTemplatePackage.cs (5)
172details.TryAdd(AuthorKey, Author ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 173details.TryAdd(OwnersKey, Owners ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 174details.TryAdd(ReservedKey, Reserved ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 175details.TryAdd(NuGetSourceKey, NuGetSource ?? string.Empty, (entry) => !string.IsNullOrEmpty(entry)); 182if (value is null || !dict.TryAdd(key, value, condition))