323 references to TryAdd
Aspire.Dashboard (3)
Aspire.Hosting (3)
Aspire.Hosting.Analyzers (1)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.StackExchange.Redis (1)
dotnet-svcutil-lib (1)
Metrics (2)
Metrics.Legacy (2)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.DataProtection (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.Routing (3)
Microsoft.AspNetCore.Routing.Abstractions (3)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.Build (75)
Resources\Constants.cs (68)
201return s_availableStaticMethods.TryAdd(key, value);
213return s_availableStaticMethods.TryAdd(CreateQualifiedMethodName(typeFullName, simpleMethodName), typeInformation);
298availableStaticMethods.TryAdd("System.Environment::ExpandEnvironmentVariables", environmentType);
299availableStaticMethods.TryAdd("System.Environment::GetEnvironmentVariable", environmentType);
300availableStaticMethods.TryAdd("System.Environment::GetEnvironmentVariables", environmentType);
301availableStaticMethods.TryAdd("System.Environment::GetFolderPath", environmentType);
302availableStaticMethods.TryAdd("System.Environment::GetLogicalDrives", environmentType);
305availableStaticMethods.TryAdd("System.Environment::CommandLine", environmentType);
306availableStaticMethods.TryAdd("System.Environment::Is64BitOperatingSystem", environmentType);
307availableStaticMethods.TryAdd("System.Environment::Is64BitProcess", environmentType);
308availableStaticMethods.TryAdd("System.Environment::MachineName", environmentType);
309availableStaticMethods.TryAdd("System.Environment::NewLine", environmentType);
310availableStaticMethods.TryAdd("System.Environment::OSVersion", environmentType);
311availableStaticMethods.TryAdd("System.Environment::ProcessorCount", environmentType);
312availableStaticMethods.TryAdd("System.Environment::StackTrace", environmentType);
313availableStaticMethods.TryAdd("System.Environment::SystemDirectory", environmentType);
314availableStaticMethods.TryAdd("System.Environment::SystemPageSize", environmentType);
315availableStaticMethods.TryAdd("System.Environment::TickCount", environmentType);
316availableStaticMethods.TryAdd("System.Environment::UserDomainName", environmentType);
317availableStaticMethods.TryAdd("System.Environment::UserInteractive", environmentType);
318availableStaticMethods.TryAdd("System.Environment::UserName", environmentType);
319availableStaticMethods.TryAdd("System.Environment::Version", environmentType);
320availableStaticMethods.TryAdd("System.Environment::WorkingSet", environmentType);
322availableStaticMethods.TryAdd("System.IO.Directory::GetDirectories", directoryType);
323availableStaticMethods.TryAdd("System.IO.Directory::GetFiles", directoryType);
324availableStaticMethods.TryAdd("System.IO.Directory::GetLastAccessTime", directoryType);
325availableStaticMethods.TryAdd("System.IO.Directory::GetLastWriteTime", directoryType);
326availableStaticMethods.TryAdd("System.IO.Directory::GetParent", directoryType);
327availableStaticMethods.TryAdd("System.IO.File::Exists", fileType);
328availableStaticMethods.TryAdd("System.IO.File::GetCreationTime", fileType);
329availableStaticMethods.TryAdd("System.IO.File::GetAttributes", fileType);
330availableStaticMethods.TryAdd("System.IO.File::GetLastAccessTime", fileType);
331availableStaticMethods.TryAdd("System.IO.File::GetLastWriteTime", fileType);
332availableStaticMethods.TryAdd("System.IO.File::ReadAllText", fileType);
334availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
335availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
336availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
339availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions)));
340availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte)));
341availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char)));
342availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert)));
343availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime)));
344availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset)));
345availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal)));
346availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double)));
347availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum)));
348availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid)));
349availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16)));
350availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32)));
351availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64)));
352availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path)));
353availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math)));
354availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16)));
355availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32)));
356availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
357availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte)));
358availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single)));
359availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String)));
360availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer)));
361availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan)));
362availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex)));
363availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder)));
364availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version)));
365availableStaticMethods.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));
366availableStaticMethods.TryAdd("System.Runtime.InteropServices.RuntimeInformation", runtimeInformationType);
367availableStaticMethods.TryAdd("System.Runtime.InteropServices.OSPlatform", osPlatformType);
374availableStaticMethods.TryAdd("System.OperatingSystem", operatingSystemType);
375availableStaticMethods.TryAdd("Microsoft.Build.Framework.OperatingSystem", operatingSystemType);
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.Core (18)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (12)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Console (4)
Microsoft.Extensions.Options (1)
Microsoft.Maui (1)
Microsoft.ML.Core (3)
Microsoft.ML.Tokenizers (1)
Microsoft.NET.StringTools (2)
Microsoft.VisualStudio.LanguageServices (2)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
MSBuild (1)
PresentationFramework (3)
Roslyn.Diagnostics.Analyzers (4)
SignalRSamples (1)
SocialWeather (1)
System.Collections.Concurrent (1)
System.ComponentModel.Annotations (3)
System.ComponentModel.TypeConverter (2)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (1)
System.Net.Http (1)
System.Private.Windows.Core.TestUtilities (1)
System.Runtime.InteropServices (1)
System.Security.Cryptography (2)
System.Text.Json (5)
System.Text.RegularExpressions (1)
System.Windows.Forms (1)
System.Xaml (3)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
Test.Utilities (2)
Text.Analyzers (2)
xunit.console (2)