Skip to content

Commit 171723b

Browse files
committed
Applied cleanup for IDE0090 to the solution.
1 parent bb86103 commit 171723b

File tree

385 files changed

+1065
-1061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+1065
-1061
lines changed

src/BuiltInTools/BrowserRefresh/BrowserRefreshMiddleware.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Watch.BrowserRefresh
1111
{
1212
public class BrowserRefreshMiddleware
1313
{
14-
private static readonly MediaTypeHeaderValue _textHtmlMediaType = new MediaTypeHeaderValue("text/html");
14+
private static readonly MediaTypeHeaderValue _textHtmlMediaType = new("text/html");
1515
private readonly RequestDelegate _next;
1616
private readonly ILogger _logger;
1717

src/BuiltInTools/BrowserRefresh/ResponseStreamWrapper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Microsoft.AspNetCore.Watch.BrowserRefresh
1515
/// </summary>
1616
public class ResponseStreamWrapper : Stream
1717
{
18-
private static readonly MediaTypeHeaderValue _textHtmlMediaType = new MediaTypeHeaderValue("text/html");
18+
private static readonly MediaTypeHeaderValue _textHtmlMediaType = new("text/html");
1919
private readonly Stream _baseStream;
2020
private readonly HttpContext _context;
2121
private readonly ILogger _logger;

src/BuiltInTools/dotnet-watch/Filters/LaunchBrowserFilter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.DotNet.Watcher.Tools
1010
{
1111
internal sealed class LaunchBrowserFilter : IWatchFilter, IAsyncDisposable
1212
{
13-
private static readonly Regex NowListeningRegex = new Regex(@"Now listening on: (?<url>.*)\s*$", RegexOptions.None | RegexOptions.Compiled, TimeSpan.FromSeconds(10));
13+
private static readonly Regex NowListeningRegex = new(@"Now listening on: (?<url>.*)\s*$", RegexOptions.None | RegexOptions.Compiled, TimeSpan.FromSeconds(10));
1414
private readonly DotNetWatchOptions _options;
1515
private readonly string? _browserPath;
1616
private bool _attemptedBrowserLaunch;

src/BuiltInTools/dotnet-watch/HotReload/HotReloadEventSource.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ internal sealed class Keywords
2828
[Event(2, Message = "Hot reload finished for {0}", Level = EventLevel.Informational, Keywords = Keywords.Perf)]
2929
public void HotReloadEnd(StartType handlerType) { WriteEvent(2, handlerType); }
3030

31-
public static readonly HotReloadEventSource Log = new HotReloadEventSource();
31+
public static readonly HotReloadEventSource Log = new();
3232
}
3333
}

src/BuiltInTools/dotnet-watch/Internal/ConsoleReporter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Tools.Internal
1212
/// </summary>
1313
internal sealed class ConsoleReporter : IReporter
1414
{
15-
private readonly object _writeLock = new object();
15+
private readonly object _writeLock = new();
1616

1717
public ConsoleReporter(IConsole console)
1818
: this(console, verbose: false, quiet: false, suppressEmojis: false)

src/BuiltInTools/dotnet-watch/Internal/ConsoleRequester.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Tools.Internal
1212
/// </summary>
1313
internal sealed class ConsoleRequester : IRequester
1414
{
15-
private readonly object _writeLock = new object();
15+
private readonly object _writeLock = new();
1616

1717
public ConsoleRequester(IConsole console, bool quiet, bool suppressEmojis)
1818
{

src/BuiltInTools/dotnet-watch/Internal/FileWatcher/DotnetFileWatcher.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class DotnetFileWatcher : IFileSystemWatcher
1616

1717
private FileSystemWatcher _fileSystemWatcher;
1818

19-
private readonly object _createLock = new object();
19+
private readonly object _createLock = new();
2020

2121
public DotnetFileWatcher(string watchedDirectory)
2222
: this(watchedDirectory, DefaultWatcherFactory)

src/BuiltInTools/dotnet-watch/Internal/FileWatcher/PollingFileWatcher.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ internal class PollingFileWatcher : IFileSystemWatcher
1515

1616
private readonly DirectoryInfo _watchedDirectory;
1717

18-
private Dictionary<string, FileMeta> _knownEntities = new Dictionary<string, FileMeta>();
19-
private Dictionary<string, FileMeta> _tempDictionary = new Dictionary<string, FileMeta>();
20-
private HashSet<string> _changes = new HashSet<string>();
18+
private Dictionary<string, FileMeta> _knownEntities = new();
19+
private Dictionary<string, FileMeta> _tempDictionary = new();
20+
private HashSet<string> _changes = new();
2121

2222
private Thread _pollingThread;
2323
private bool _raiseEvents;

src/BuiltInTools/dotnet-watch/Internal/OutputCapture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.DotNet.Watcher.Internal
88
{
99
internal sealed class OutputCapture
1010
{
11-
private readonly List<string> _lines = new List<string>();
11+
private readonly List<string> _lines = new();
1212
public IEnumerable<string> Lines => _lines;
1313
public void AddLine(string line) => _lines.Add(line);
1414
}

src/BuiltInTools/dotnet-watch/Internal/ProcessRunner.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private class ProcessState : IDisposable
165165
{
166166
private readonly IReporter _reporter;
167167
private readonly Process _process;
168-
private readonly TaskCompletionSource _tcs = new TaskCompletionSource();
168+
private readonly TaskCompletionSource _tcs = new();
169169
private volatile bool _disposed;
170170

171171
public ProcessState(Process process, IReporter reporter)

src/BuiltInTools/dotnet-watch/ProjectInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ internal sealed record ProjectInfo
1515
string RunWorkingDirectory
1616
)
1717
{
18-
private static readonly Version Version3_1 = new Version(3, 1);
19-
private static readonly Version Version6_0 = new Version(6, 0);
18+
private static readonly Version Version3_1 = new(3, 1);
19+
private static readonly Version Version6_0 = new(6, 0);
2020

2121
public bool IsNetCoreApp31OrNewer()
2222
{

src/Cli/Microsoft.DotNet.Cli.Sln.Internal/SlnFile.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ namespace Microsoft.DotNet.Cli.Sln.Internal
3939
{
4040
public class SlnFile
4141
{
42-
private SlnProjectCollection _projects = new SlnProjectCollection();
43-
private SlnSectionCollection _sections = new SlnSectionCollection();
44-
private SlnPropertySet _metadata = new SlnPropertySet(true);
42+
private SlnProjectCollection _projects = new();
43+
private SlnSectionCollection _sections = new();
44+
private SlnPropertySet _metadata = new(true);
4545
private int _prefixBlankLines = 1;
46-
private TextFormatInfo _format = new TextFormatInfo();
46+
private TextFormatInfo _format = new();
4747

4848
public string FormatVersion { get; set; }
4949
public string ProductDescription { get; set; }
@@ -105,7 +105,7 @@ public SlnFile()
105105

106106
public static SlnFile Read(string file)
107107
{
108-
SlnFile slnFile = new SlnFile();
108+
SlnFile slnFile = new();
109109
slnFile.FullPath = Path.GetFullPath(file);
110110
slnFile._format = FileUtil.GetTextFormatInfo(file);
111111

@@ -152,7 +152,7 @@ private void Read(TextReader reader)
152152
}
153153
else if (line.StartsWith("Project", StringComparison.Ordinal))
154154
{
155-
SlnProject p = new SlnProject();
155+
SlnProject p = new();
156156
p.Read(reader, line, ref curLineNum);
157157
_projects.Add(p);
158158
}
@@ -241,7 +241,7 @@ private void Write(TextWriter writer)
241241

242242
public class SlnProject
243243
{
244-
private SlnSectionCollection _sections = new SlnSectionCollection();
244+
private SlnSectionCollection _sections = new();
245245

246246
private SlnFile _parentFile;
247247

@@ -635,7 +635,7 @@ internal void Write(TextWriter writer, string sectionTag)
635635
/// </summary>
636636
public class SlnPropertySet : IDictionary<string, string>
637637
{
638-
private OrderedDictionary _values = new OrderedDictionary();
638+
private OrderedDictionary _values = new();
639639
private bool _isMetadata;
640640

641641
internal bool Processed { get; set; }

src/Cli/Microsoft.DotNet.Cli.Utils/AnsiExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Microsoft.DotNet.Cli.Utils
55
{
66
public static class AnsiExtensions
77
{
8-
private static readonly Lazy<bool> _xtermEnabled = new Lazy<bool>(
8+
private static readonly Lazy<bool> _xtermEnabled = new(
99
() =>
1010
{
1111
var environment = Environment.GetEnvironmentVariable("TERM");

src/Cli/Microsoft.DotNet.Cli.Utils/BlockingMemoryStream.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.DotNet.Cli.Utils
1010
/// </summary>
1111
public sealed class BlockingMemoryStream : Stream
1212
{
13-
private readonly BlockingCollection<byte[]> _buffers = new BlockingCollection<byte[]>();
13+
private readonly BlockingCollection<byte[]> _buffers = new();
1414
private ArraySegment<byte> _remaining;
1515

1616
public override void Write(byte[] buffer, int offset, int count)

src/Cli/Microsoft.DotNet.Cli.Utils/BuiltInCommand.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public CommandResult Execute()
4646
{
4747
// redirecting the standard out and error so we can forward
4848
// the output to the caller
49-
using (BlockingMemoryStream outStream = new BlockingMemoryStream())
50-
using (BlockingMemoryStream errorStream = new BlockingMemoryStream())
49+
using (BlockingMemoryStream outStream = new())
50+
using (BlockingMemoryStream errorStream = new())
5151
{
5252
_environment.SetConsoleOut(new StreamWriter(outStream) { AutoFlush = true });
5353
_environment.SetConsoleError(new StreamWriter(errorStream) { AutoFlush = true });
@@ -71,7 +71,7 @@ public CommandResult Execute()
7171
Task.WaitAll(taskOut, taskErr);
7272

7373
// fake out a ProcessStartInfo using the Muxer command name, since this is a built-in command
74-
ProcessStartInfo startInfo = new ProcessStartInfo(new Muxer().MuxerPath, $"{CommandName} {CommandArgs}");
74+
ProcessStartInfo startInfo = new(new Muxer().MuxerPath, $"{CommandName} {CommandArgs}");
7575
return new CommandResult(startInfo, exitCode, null, null);
7676
}
7777
}

src/Cli/Microsoft.DotNet.Cli.Utils/CommandResult.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.DotNet.Cli.Utils
77
{
88
public struct CommandResult
99
{
10-
public static readonly CommandResult Empty = new CommandResult();
10+
public static readonly CommandResult Empty = new();
1111

1212
public ProcessStartInfo StartInfo { get; }
1313
public int ExitCode { get; }

src/Cli/Microsoft.DotNet.Cli.Utils/DotnetFiles.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class DotnetFiles
1111
private static string SdkRootFolder => Path.Combine(typeof(DotnetFiles).GetTypeInfo().Assembly.Location, "..");
1212

1313
private static Lazy<DotnetVersionFile> s_versionFileObject =
14-
new Lazy<DotnetVersionFile>(() => new DotnetVersionFile(VersionFile));
14+
new(() => new DotnetVersionFile(VersionFile));
1515

1616
/// <summary>
1717
/// The SDK ships with a .version file that stores the commit information and SDK version

src/Cli/Microsoft.DotNet.Cli.Utils/EnvironmentProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class EnvironmentProvider : IEnvironmentProvider
88
private static char[] s_pathSeparator = new char[] { Path.PathSeparator };
99
private static char[] s_quote = new char[] { '"' };
1010
private IEnumerable<string> _searchPaths;
11-
private readonly Lazy<string> _userHomeDirectory = new Lazy<string>(() => Environment.GetEnvironmentVariable("HOME") ?? string.Empty);
11+
private readonly Lazy<string> _userHomeDirectory = new(() => Environment.GetEnvironmentVariable("HOME") ?? string.Empty);
1212
private IEnumerable<string> _executableExtensions;
1313

1414
public IEnumerable<string> ExecutableExtensions

src/Cli/Microsoft.DotNet.Cli.Utils/FrameworkDependencyFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ internal static bool TryGetMostFitRuntimeIdentifier(
112112
private DependencyContext CreateDependencyContext()
113113
{
114114
using (Stream depsFileStream = File.OpenRead(_depsFilePath))
115-
using (DependencyContextJsonReader reader = new DependencyContextJsonReader())
115+
using (DependencyContextJsonReader reader = new())
116116
{
117117
return reader.Read(depsFileStream);
118118
}

src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildForwardingAppWithoutLogging.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ internal class MSBuildForwardingAppWithoutLogging
3838
public bool ExecuteMSBuildOutOfProc => _forwardingApp != null;
3939

4040
private readonly Dictionary<string, string> _msbuildRequiredEnvironmentVariables =
41-
new Dictionary<string, string>
41+
new()
4242
{
4343
{ "MSBuildExtensionsPath", MSBuildExtensionsPathTestHook ?? AppContext.BaseDirectory },
4444
{ "MSBuildSDKsPath", GetMSBuildSDKsPath() },
@@ -133,7 +133,7 @@ public int Execute()
133133
public int ExecuteInProc(string[] arguments)
134134
{
135135
// Save current environment variables before overwriting them.
136-
Dictionary<string, string> savedEnvironmentVariables = new Dictionary<string, string>();
136+
Dictionary<string, string> savedEnvironmentVariables = new();
137137
try
138138
{
139139
foreach (KeyValuePair<string, string> kvp in _msbuildRequiredEnvironmentVariables)

src/Cli/Microsoft.DotNet.Cli.Utils/MSBuildPropertyParser.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public static class MSBuildPropertyParser
1515
public static IEnumerable<(string key, string value)> ParseProperties(string input)
1616
{
1717
var currentPos = 0;
18-
StringBuilder currentKey = new StringBuilder();
19-
StringBuilder currentValue = new StringBuilder();
18+
StringBuilder currentKey = new();
19+
StringBuilder currentValue = new();
2020

2121
(string key, string value) EmitAndReset()
2222
{

src/Cli/Microsoft.DotNet.Cli.Utils/PathUtility.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public static string GetAbsolutePath(string basePath, string relativePath)
230230
throw new ArgumentNullException(nameof(relativePath));
231231
}
232232

233-
Uri resultUri = new Uri(new Uri(basePath), new Uri(relativePath, UriKind.Relative));
233+
Uri resultUri = new(new Uri(basePath), new Uri(relativePath, UriKind.Relative));
234234
return resultUri.LocalPath;
235235
}
236236

src/Cli/Microsoft.DotNet.Cli.Utils/RuntimeEnvironment.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ internal enum Platform
1717

1818
internal static class RuntimeEnvironment
1919
{
20-
private static readonly Lazy<Platform> _platform = new Lazy<Platform>(DetermineOSPlatform);
21-
private static readonly Lazy<DistroInfo> _distroInfo = new Lazy<DistroInfo>(LoadDistroInfo);
20+
private static readonly Lazy<Platform> _platform = new(DetermineOSPlatform);
21+
private static readonly Lazy<DistroInfo> _distroInfo = new(LoadDistroInfo);
2222

2323
public static Platform OperatingSystemPlatform { get; } = GetOSPlatform();
2424
public static string OperatingSystemVersion { get; } = GetOSVersion();

src/Cli/Microsoft.DotNet.Cli.Utils/Uuid.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Uuid
1515
public static Guid Create(string name)
1616
{
1717
// Any fixed GUID will do for a namespace.
18-
Guid namespaceId = new Guid("28F1468D-672B-489A-8E0C-7C5B3030630C");
18+
Guid namespaceId = new("28F1468D-672B-489A-8E0C-7C5B3030630C");
1919

2020
using (SHA1 hasher = SHA1.Create())
2121
{

src/Cli/Microsoft.DotNet.Configurer/CliFolderPathCalculator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class CliFolderPathCalculator
2323
ToolPackageFolderPathCalculator.GetToolPackageFolderPath(ToolsShimPath);
2424

2525
public static BashPathUnderHomeDirectory ToolsShimPathInUnix =>
26-
new BashPathUnderHomeDirectory(
26+
new(
2727
DotnetHomePath,
2828
Path.Combine(DotnetProfileDirectoryName, ToolsShimFolderName));
2929

src/Cli/Microsoft.TemplateEngine.Cli/Alias/AliasRegistry.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ internal AliasManipulationResult TryCreateOrRemoveAlias(string aliasName, IReadO
5555
}
5656

5757
//ensure loaded sets aliases
58-
Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new Dictionary<string, IReadOnlyList<string>>(_aliases!.CommandAliases);
58+
Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new(_aliases!.CommandAliases);
5959
aliasesWithCandidate[aliasName] = aliasTokens;
6060
if (!TryExpandCommandAliases(aliasesWithCandidate, aliasTokens, out IReadOnlyList<string>? expandedInputTokens))
6161
{
@@ -92,7 +92,7 @@ internal bool TryExpandCommandAliases(IReadOnlyList<string> inputTokens, out IRe
9292
private static bool TryExpandCommandAliases(IReadOnlyDictionary<string, IReadOnlyList<string>> aliases, IReadOnlyList<string> inputTokens, out IReadOnlyList<string>? expandedTokens)
9393
{
9494
bool expansionOccurred = false;
95-
HashSet<string> seenAliases = new HashSet<string>();
95+
HashSet<string> seenAliases = new();
9696
expandedTokens = new List<string>(inputTokens);
9797

9898
do
@@ -156,7 +156,7 @@ private void Save()
156156
// reads a dictionary whose values can either be string literals, or arrays of strings.
157157
private IReadOnlyDictionary<string, IReadOnlyList<string>> ToStringListDictionary(JToken token, StringComparer? comparer = null, string? propertyName = null)
158158
{
159-
Dictionary<string, IReadOnlyList<string>> result = new Dictionary<string, IReadOnlyList<string>>(comparer ?? StringComparer.Ordinal);
159+
Dictionary<string, IReadOnlyList<string>> result = new(comparer ?? StringComparer.Ordinal);
160160
JObject? jObj = token as JObject;
161161
if (jObj == null || propertyName == null || !jObj.TryGetValue(propertyName, StringComparison.OrdinalIgnoreCase, out JToken? element))
162162
{
@@ -188,7 +188,7 @@ private IReadOnlyDictionary<string, IReadOnlyList<string>> ToStringListDictionar
188188
}
189189
else
190190
{
191-
List<string> values = new List<string>();
191+
List<string> values = new();
192192
foreach (JToken item in arr)
193193
{
194194
if (item != null && item.Type == JTokenType.String)

src/Cli/Microsoft.TemplateEngine.Cli/ChoiceTemplateParameter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.TemplateEngine.Cli
1616
/// </summary>
1717
internal class ChoiceTemplateParameter : CliTemplateParameter
1818
{
19-
private Dictionary<string, ParameterChoice> _choices = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase);
19+
private Dictionary<string, ParameterChoice> _choices = new(StringComparer.OrdinalIgnoreCase);
2020

2121
internal ChoiceTemplateParameter(ITemplateParameter parameter, HostSpecificTemplateData data) : base(parameter, data)
2222
{
@@ -177,7 +177,7 @@ private static bool TryConvertValueToChoice(IEnumerable<string> values, ChoiceTe
177177
parsedValue = string.Empty;
178178
error = string.Empty;
179179

180-
List<string> parsedValues = new List<string>();
180+
List<string> parsedValues = new();
181181
foreach (string val in values)
182182
{
183183
if (!TryConvertSingleValueToChoice(val, parameter, out string value, out error))

src/Cli/Microsoft.TemplateEngine.Cli/CliEnvironment.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal class CliEnvironment : IEnvironment
1212

1313
public CliEnvironment()
1414
{
15-
Dictionary<string, string> variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
15+
Dictionary<string, string> variables = new(StringComparer.OrdinalIgnoreCase)
1616
{
1717
{ "TEMPLATE_ENGINE_DISABLE_FILEWATCHER", "1" }
1818
};

src/Cli/Microsoft.TemplateEngine.Cli/CliTemplateParameter.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ internal enum ParameterType
2727
/// </summary>
2828
internal class CliTemplateParameter
2929
{
30-
private readonly List<string> _shortNameOverrides = new List<string>();
30+
private readonly List<string> _shortNameOverrides = new();
3131

32-
private readonly List<string> _longNameOverrides = new List<string>();
32+
private readonly List<string> _longNameOverrides = new();
3333

3434
private readonly TemplateParameterPrecedence _precedence;
3535

@@ -458,7 +458,7 @@ private static Func<ArgumentResult, T> GetParseArgument<T>(CliTemplateParameter
458458

459459
private string GetOptionDescription()
460460
{
461-
StringBuilder displayValue = new StringBuilder(255);
461+
StringBuilder displayValue = new(255);
462462
displayValue.AppendLine(Description);
463463

464464
string? precedenceValue = GetPrecedenceInfo(_precedence);

src/Cli/Microsoft.TemplateEngine.Cli/Commands/AliasAssignmentCoordinator.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ internal class AliasAssignmentCoordinator
2323

2424
foreach (var parameter in parameters)
2525
{
26-
HashSet<string> aliases = new HashSet<string>(StringComparer.Ordinal);
27-
List<string> errors = new List<string>();
26+
HashSet<string> aliases = new(StringComparer.Ordinal);
27+
List<string> errors = new();
2828
if (parameter.Name.Contains(':'))
2929
{
3030
// Colon is reserved, template param names cannot have any.

0 commit comments

Comments
 (0)