444 references to TryAdd
aspire (1)
Aspire.Dashboard (8)
Aspire.Hosting (6)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Integration.Analyzers (1)
Aspire.Hosting.RemoteHost (4)
Aspire.StackExchange.Redis (1)
dotnet (1)
dotnet-svcutil-lib (1)
GenerateDocumentationAndConfigFiles (6)
ILCompiler.Compiler (1)
ILCompiler.ReadyToRun (3)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components (8)
Microsoft.AspNetCore.Components.Analyzers (3)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Http.Abstractions (5)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Routing.Abstractions (3)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.SignalR.Core (6)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.Build (80)
Resources\Constants.cs (72)
148return s_availableStaticMethods.TryAdd(key, value);
160return s_availableStaticMethods.TryAdd(CreateQualifiedMethodName(typeFullName, simpleMethodName), typeInformation);
323availableStaticMethods.TryAdd("System.Environment::ExpandEnvironmentVariables", environmentType);
324availableStaticMethods.TryAdd("System.Environment::GetEnvironmentVariable", environmentType);
325availableStaticMethods.TryAdd("System.Environment::GetEnvironmentVariables", environmentType);
326availableStaticMethods.TryAdd("System.Environment::GetFolderPath", environmentType);
327availableStaticMethods.TryAdd("System.Environment::GetLogicalDrives", environmentType);
330availableStaticMethods.TryAdd("System.Environment::CommandLine", environmentType);
331availableStaticMethods.TryAdd("System.Environment::Is64BitOperatingSystem", environmentType);
332availableStaticMethods.TryAdd("System.Environment::Is64BitProcess", environmentType);
333availableStaticMethods.TryAdd("System.Environment::MachineName", environmentType);
334availableStaticMethods.TryAdd("System.Environment::NewLine", environmentType);
335availableStaticMethods.TryAdd("System.Environment::OSVersion", environmentType);
336availableStaticMethods.TryAdd("System.Environment::ProcessorCount", environmentType);
337availableStaticMethods.TryAdd("System.Environment::StackTrace", environmentType);
338availableStaticMethods.TryAdd("System.Environment::SystemDirectory", environmentType);
339availableStaticMethods.TryAdd("System.Environment::SystemPageSize", environmentType);
340availableStaticMethods.TryAdd("System.Environment::TickCount", environmentType);
341availableStaticMethods.TryAdd("System.Environment::UserDomainName", environmentType);
342availableStaticMethods.TryAdd("System.Environment::UserInteractive", environmentType);
343availableStaticMethods.TryAdd("System.Environment::UserName", environmentType);
344availableStaticMethods.TryAdd("System.Environment::Version", environmentType);
345availableStaticMethods.TryAdd("System.Environment::WorkingSet", environmentType);
347availableStaticMethods.TryAdd("System.IO.Directory::Exists", directoryType);
348availableStaticMethods.TryAdd("System.IO.Directory::GetDirectories", directoryType);
349availableStaticMethods.TryAdd("System.IO.Directory::GetFiles", directoryType);
350availableStaticMethods.TryAdd("System.IO.Directory::GetLastAccessTime", directoryType);
351availableStaticMethods.TryAdd("System.IO.Directory::GetLastWriteTime", directoryType);
352availableStaticMethods.TryAdd("System.IO.Directory::GetParent", directoryType);
354availableStaticMethods.TryAdd("System.IO.File::Exists", fileType);
355availableStaticMethods.TryAdd("System.IO.File::GetCreationTime", fileType);
356availableStaticMethods.TryAdd("System.IO.File::GetAttributes", fileType);
357availableStaticMethods.TryAdd("System.IO.File::GetLastAccessTime", fileType);
358availableStaticMethods.TryAdd("System.IO.File::GetLastWriteTime", fileType);
359availableStaticMethods.TryAdd("System.IO.File::GetCreationTimeUtc", fileType);
360availableStaticMethods.TryAdd("System.IO.File::GetLastWriteTimeUtc", fileType);
361availableStaticMethods.TryAdd("System.IO.File::ReadAllText", fileType);
362availableStaticMethods.TryAdd("System.IO.File::ReadAllBytes", fileType);
364availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
365availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
366availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
369availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions)));
370availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte)));
371availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char)));
372availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert)));
373availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime)));
374availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset)));
375availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal)));
376availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double)));
377availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum)));
378availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid)));
379availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16)));
380availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32)));
381availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64)));
382availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path)));
383availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math)));
384availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16)));
385availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32)));
386availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
387availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte)));
388availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single)));
389availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String)));
390availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer)));
391availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan)));
392availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex)));
393availableStaticMethods.TryAdd("System.Uri", new Tuple<string, Type>(null, typeof(Uri)));
394availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder)));
395availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version)));
396availableStaticMethods.TryAdd("Microsoft.Build.Utilities.ToolLocationHelper", new Tuple<string, Type>("Microsoft.Build.Utilities.ToolLocationHelper, Microsoft.Build.Utilities.Core, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null));
397availableStaticMethods.TryAdd("System.Runtime.InteropServices.RuntimeInformation", runtimeInformationType);
398availableStaticMethods.TryAdd("System.Runtime.InteropServices.OSPlatform", osPlatformType);
401availableStaticMethods.TryAdd("System.OperatingSystem", operatingSystemType);
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (12)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.Analyzers (9)
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (15)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.NetAnalyzers (35)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.DotNetDeltaApplier (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Console (4)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Microsoft.Maui (1)
Microsoft.ML.Core (3)
Microsoft.ML.Tokenizers (1)
Microsoft.NET.StringTools (2)
Microsoft.TemplateEngine.Core (1)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Microsoft.TestPlatform.CrossPlatEngine (4)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.VisualStudio.TestPlatform.Common (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
MSBuild (2)
MSBuild.Coordinator (1)
NuGet.Build.Tasks.Console (5)
NuGet.Commands (4)
NuGet.Configuration (1)
NuGet.Frameworks (1)
NuGet.LibraryModel (2)
NuGet.PackageManagement (2)
NuGet.Packaging (2)
NuGet.Protocol (8)
PresentationFramework (3)
PresentationFramework.Aero (1)
PresentationFramework.Aero2 (1)
PresentationFramework.AeroLite (1)
PresentationFramework.Classic (1)
PresentationFramework.Luna (1)
PresentationFramework.Royale (1)
Roslyn.Diagnostics.Analyzers (8)
System.ComponentModel.Annotations (3)
System.ComponentModel.TypeConverter (1)
System.Data.Odbc (2)
System.Data.OleDb (2)
System.Diagnostics.DiagnosticSource (1)
System.Net.Http (1)
System.Net.Http.WinHttpHandler (1)
System.Private.CoreLib (1)
System.Private.Windows.Core.TestUtilities (1)
System.Runtime.InteropServices (1)
System.Security.Cryptography (5)
System.ServiceModel.Primitives (2)
System.Text.Encoding.CodePages (3)
System.Text.Json (5)
System.Text.RegularExpressions (1)
System.Windows.Forms (2)
System.Xaml (3)
vstest.console (1)
vstest.console.arm64 (1)