I wanted to declare a new character array containing just a single double quote character in C#, but instead of:

var myCharArray = new char[] { ‘”‘ };

I wrote var myCharArray = new char[‘”‘];

This will generate a char array with a length of 34.



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.