<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
</Dependency>
- <Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23124.1">
+ <Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0-beta1.23420.2">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
- <Sha>c6352bf2e1bd214fce090829de1042000d021497</Sha>
+ <Sha>76d99c5f3e11f0600fae074270c0d89042c360f0</Sha>
</Dependency>
- <Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview1.23124.1">
+ <Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview.23420.2">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
- <Sha>c6352bf2e1bd214fce090829de1042000d021497</Sha>
+ <Sha>76d99c5f3e11f0600fae074270c0d89042c360f0</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
<MicrosoftCodeAnalysisVersion_4_4>4.4.0</MicrosoftCodeAnalysisVersion_4_4>
<MicrosoftCodeAnalysisVersion_LatestVS>4.4.0</MicrosoftCodeAnalysisVersion_LatestVS>
<MicrosoftCodeAnalysisVersion_LatestVS Condition="'$(DotNetBuildFromSource)' == 'true'">$(MicrosoftCodeAnalysisVersion)</MicrosoftCodeAnalysisVersion_LatestVS>
- <MicrosoftCodeAnalysisAnalyzersVersion>3.3.5-beta1.23124.1</MicrosoftCodeAnalysisAnalyzersVersion>
- <MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview1.23124.1</MicrosoftCodeAnalysisNetAnalyzersVersion>
+ <MicrosoftCodeAnalysisAnalyzersVersion>3.11.0-beta1.23420.2</MicrosoftCodeAnalysisAnalyzersVersion>
+ <MicrosoftCodeAnalysisNetAnalyzersVersion>8.0.0-preview.23420.2</MicrosoftCodeAnalysisNetAnalyzersVersion>
<!--
These packages affect the design-time experience in VS, so we update them at the same cadance as the MicrosoftCodeAnalysisVersion_LatestVS version.
-->
Any tools that contribute to the design-time experience should use the MicrosoftCodeAnalysisVersion_LatestVS property above to ensure
they do not break the local dev experience.
-->
- <MicrosoftCodeAnalysisCSharpVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisCSharpVersion>
- <MicrosoftCodeAnalysisVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisVersion>
- <MicrosoftNetCompilersToolsetVersion>4.6.0-1.23073.4</MicrosoftNetCompilersToolsetVersion>
+ <MicrosoftCodeAnalysisCSharpVersion>4.8.0-2.23422.14</MicrosoftCodeAnalysisCSharpVersion>
+ <MicrosoftCodeAnalysisVersion>4.8.0-2.23422.14</MicrosoftCodeAnalysisVersion>
+ <MicrosoftNetCompilersToolsetVersion>4.8.0-2.23422.14</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>
</Project>
public Runtime(IServiceProvider services, int id, ClrInfo clrInfo)
{
- Target = services.GetService<ITarget>() ?? throw new ArgumentNullException(nameof(Target), "Uninitialized service");
+ Target = services.GetService<ITarget>() ?? throw new NullReferenceException($"Uninitialized service: {nameof(Target)}");
Id = id;
_clrInfo = clrInfo ?? throw new ArgumentNullException(nameof(clrInfo));
_symbolService = services.GetService<ISymbolService>();
{
count++;
- WorkInfo wi;
- if (!stats.ContainsKey(statName))
+ if (!stats.TryGetValue(statName, out WorkInfo wi))
{
wi = new WorkInfo()
{
};
stats[statName] = wi;
}
- else
- {
- wi = stats[statName];
- }
wi.Count++;
}
{
// Host can contain wildcard (*) that is a reserved charachter in URI's.
// Replace with dummy localhost representation just for parsing purpose.
- if (endPoint.IndexOf("//*", StringComparison.Ordinal) != -1)
+ if (endPoint.Contains("//*"))
{
usesWildcardHost = true;
uriToParse = endPoint.Replace("//*", "//localhost");
string uriToParse;
// Host can contain wildcard (*) that is a reserved charachter in URI's.
// Replace with dummy localhost representation just for parsing purpose.
- if (endPoint.IndexOf("//*", StringComparison.Ordinal) != -1)
+ if (endPoint.Contains("//*"))
{
// FIXME: This is a workaround for the fact that Uri.Host is not set for wildcard host.
throw new ArgumentException("Wildcard host is not supported for WebSocket endpoints");