Answer Posted / sheetal shivdas
run this code : to see that string is reference type
SByte a = 0;
Byte be = 0;
Int16 c = 0;
Int32 d = 0;
Int64 ee = 0;
String s = "";
Exception ex = new Exception();
object[] Types = { a, be, c, d, ee, s,ex };
foreach (object obj in Types)
{
string type;
if (obj.GetType().IsValueType)
type = "Value Type";
else
type = "Reference Type";
Response.Write(type);
}
| Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
What is preprocessor in .net?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
What is meant by asp.net?
What is the difference between rest and restful?
what are the ihttphandler and ihttphandlerfactory interfaces ?
What is cas?
What are user controls?
What is http pipeline in asp.net?
Name the tools or API for developing or testing web api?
How can we communicate with each server in N-tier Architecture? and what are the methods?
What is the function of the ViewState property?
When should I use server transfer and response redirect?
What a diffgram is, and a good use for one?
What is application in asp net?
Which is better union or union all?