Myvideo

Guest

Login

Const vs Readonly C# | Compile-Time Constant vs Run-Time Constant C# | C# Constants

Uploaded By: Myvideo
5 views
0
0 votes
0

Const vs Readonly C# | Compile-Time Constant vs Run-Time Constant C# | C# Constants Agenda: --------------- Q01. How can you make a variable as immutable in C#? Q02. What is the difference between const and readonly in C#? How a const and readonly differ from static variable? Constant: ----------- Q01. What is constant (const) in C#? Can you use var for declaring a constant variable in C#? Q02. Where can you declare a constant variable in C#? Can you initialize a constant value with an expression in C#? Q03. Can you define a constant (const) as static? Q04. Can you define a reference type as constant in C#? Q05. Can nullable primitive data types be defined as constant in C#? Q06. Can a constant variable be accessed globally in C#? Q07. Can you pass a constant as REF or OUT parameter in C#? Why? Q08. Is there any memory allocation for constants during runtime in C#? Q09. Where are the constants variables stored in C#? Q10. How can you access a constant me

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later