Skip to content

EasyConceptC# Language Fundamentals

What is the difference between const and readonly?

What a good answer covers

const is a compile-time constant baked into callers. readonly is assigned at declaration or in a constructor and evaluated at runtime.

More on C# Language Fundamentals

Flashcards for this topic