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 anonymous authentication?
What are early binding and late binding.
How do you implement postback with a text box?
Explain diff between dataset and datareader?
In a Repeater control how one can provide an alternating color scheme ?
What is a viewbag?
From which base class all web forms are inherited?
Which asp.net objects encapsulate the state of the client and the browser?
What is IPostBack? How to use it?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What is Forms Authentication in ASP.NET?
What is a web api?
What are the session management techniques asp net?
How to do state management in ASP.NET?
What are sharepoint pages?