Having a friendly debate with a co-worker about this. We have some thoughts about this, but wondering what the SO crowd thinks about this?
use const keyword to make read only variable.
const
reference: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/const
public class SealedTest { static void Main() { const int c = 707; Console.WriteLine("My local constant = {0}", c); } }