Skip to content

Commit 578b594

Browse files
committed
Prefer Length over Count() for performance reasons
1 parent ebb917c commit 578b594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.Models/Metadata/AttributeDescriptorTopicViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public IDictionary<string, string> Configuration {
9898
.Select(value => value.Split('='))
9999
.ToDictionary(
100100
pair => pair[0],
101-
pair => pair.Count() is 2? pair[1]?.Replace("\"", "") : null
101+
pair => pair.Length is 2? pair[1]?.Replace("\"", "") : null
102102
);
103103
}
104104
return _configuration;

0 commit comments

Comments
 (0)