Code inspection: Char is possibly unintentionally used as an index
This inspection reports a character constant used as an index. C# converts the character to its numeric value, so buffer[','] accesses the element at index 44. If you intend to use the numeric value, make the index explicit.
Example
var item = buffer[','];
var item = buffer[44];
If you need a lookup by character, use an indexer with a char key.
27 October 2026