Explain the three test cases in unit testing?
What is asp net c#?
Name some properties of thread class.
What is the difference between CreateObject() and GetObject()?
What are the different types of assembly?
How many bytes is an int c#?
What does firstordefault mean in c#?
What is short circuit logical evaluation?
Explain static class members.
For read-only operation which property you have to designated?
I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else.
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 is tpl in c#?