Back to Basics - What is the difference between const and readonly in C#?

added by DotNetKicks
11/7/2017 1:59:12 PM

2 Kicks, 170 Views

Continuing with the Back to Basics series, here is another common and quite confusing question. What is read-only and constant variable? How do they differ? When should we use constant over Read-only? and , are very common keywords and are quite confusing when you placed them with each other.