Code

Constant, Readonly

Constant ( Compile-time Constants )

Use the const keyword before the data type to declare a constant field or a constant local to a method.

C# Constant

Run Demo

Readonly ( Run-time Constants )

C# Readonly

Run Demo

Pirzada Rashid

Senior .NET developer with a Master of Science in Information Technology.
Teaching is one of my passions. It gives me great joy to share my knowledge with others, and I look forward to investing more energy into it.

Add Comment

Click here to post a comment

Popular Video

82,490+ Views