Skip to content

Instantly share code, notes, and snippets.

@iraSenthil
Created March 31, 2011 19:56
Show Gist options
  • Save iraSenthil/897120 to your computer and use it in GitHub Desktop.
Save iraSenthil/897120 to your computer and use it in GitHub Desktop.
const vs readonly
//Error
const string MessageTrailer = UTF8Encoding.UTF8.GetString(new byte[] { 0x1c, 0x0d });
//No error
readonly string MessageTrailer = UTF8Encoding.UTF8.GetString(new byte[] { 0x1c, 0x0d });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment