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
Why session is used in asp.net?
How does session state work in asp.net?
What is razor? : asp.net mvc
How do you implement sql caching in asp.net?
What is the use of express session?
What is the asp.net mvc folder conventions? : asp.net mvc
What is asp.net and how it works?
What is mta?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
Explain About WebService
What are the types of session in asp.net?
What are the Types of authentications in IIS
What is a reflection?
What is asp according to you?