What is the difference between “constant” and “readonly” variables in c#?
i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?
What does console readkey do in c#?
How is exception handling implemented in c#?
What do you mean by “finalize” and “finally” methods in c#?
Can an abstract class have a constructor c#?
In c# how to connect crystal report?
difference between managed code and unmanaged code ?
Is collection a data structure?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
Why do we use reflection in c#?
Why generics are used?
What are Generics?