Skip to content

Commit 9c45401

Browse files
committed
Use StringComparison.Ordinal
1 parent 0a8c518 commit 9c45401

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/DocumentationRules/ElementDocumentationBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void HandleDeclaration(SyntaxNodeAnalysisContext context, SyntaxNode nod
210210
IEnumerable<XmlNodeSyntax> matchingXmlElements = string.IsNullOrEmpty(this.matchElementName)
211211
? documentation.Content
212212
.Where(x => x is XmlElementSyntax || x is XmlEmptyElementSyntax)
213-
.Where(x => !string.Equals(x.GetName()?.ToString(), XmlCommentHelper.IncludeXmlTag))
213+
.Where(x => !string.Equals(x.GetName()?.ToString(), XmlCommentHelper.IncludeXmlTag, StringComparison.Ordinal))
214214
: documentation.Content.GetXmlElements(this.matchElementName);
215215

216216
if (!matchingXmlElements.Any())

0 commit comments

Comments
 (0)