Skip to content

Commit 6e220d0

Browse files
committed
Reorder to put the more common case first
1 parent 1a4fad4 commit 6e220d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BinlogTool/ListProperties.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ private void VisitProperties(Record record, IEnumerable properties)
5252

5353
foreach (var kvp in properties)
5454
{
55-
if (kvp is DictionaryEntry entry)
55+
if (kvp is KeyValuePair<string, string> keyValuePair)
5656
{
57-
VisitProperty(record, Convert.ToString(entry.Key), Convert.ToString(entry.Value));
57+
VisitProperty(record, keyValuePair.Key, keyValuePair.Value);
5858
}
59-
else if (kvp is KeyValuePair<string, string> keyValuePair)
59+
else if (kvp is DictionaryEntry entry)
6060
{
61-
VisitProperty(record, keyValuePair.Key, keyValuePair.Value);
61+
VisitProperty(record, Convert.ToString(entry.Key), Convert.ToString(entry.Value));
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)