Skip to content

Commit

Permalink
Update SharedPerformanceCounter assert (#44333)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Nov 6, 2020
1 parent 669d451 commit 230b5b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ private unsafe CategoryData GetCategoryData()
}
else
{
Debug.Assert(counterNamesObject is string[], $"Expected string[], got '{counterNamesObject}' with kind '{categoryKey.GetValueKind("Counter Names")}'for category '{_categoryName}'");
Debug.Assert(counterNamesObject is string[], $"Expected string[], got '{counterNamesObject}' of type '{counterNamesObject?.GetType()}' with kind '{categoryKey.GetValueKind("Counter Names")}' for category '{_categoryName}'");
string[] counterNames = (string[])counterNamesObject;
for (int i = 0; i < counterNames.Length; i++)
counterNames[i] = counterNames[i].ToLowerInvariant();
Expand Down

0 comments on commit 230b5b1

Please sign in to comment.