DEV Community

In C#, readonly and const are both used to define constants, but they have some key differences

viveknariya on March 04, 2024

const 1 . Scope Constants are implicitly static and have a scope limited to the class or struct in which they are declared. They are e...
Collapse
 
viveknariya profile image
viveknariya

second