Difference between the const and readonly
Illustrate the difference between the const and readonly?
Expert
The readonly keyword is distinct from the const keyword. The const field can just be initialized at the declaration of field. The readonly field can be initialized either at declaration or in a constructor. Thus, readonly fields can encompass various values based on the constructor used. As well, while a const field is a compile-time constant, the readonly field can be employed for runtime constants as in the given illustration:
public static readonly uint l1 = (uint) DateTime.Now.Ticks;
Define the function of a ViewState property?
What is meant by the term Global Assembly Cache (GAC)?
Define the execution process of managed code?
Explain what is Multicast delegate?
State the method which can be used to impose Garbage collection in .NET?
What do you understand by Common Type System (CTS)?
How we can populate the dataset before querying the DataSet object by using LINQ to DataSet?
Specify the differences between the Dispose() and Finalize() methods.
How do dates, numbers, and currencies in a text box are formatted?
What is AccordionExtender control?
18,76,764
1956960 Asked
3,689
Active Tutors
1428742
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!