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 session in web technology?
What is ispostback method in asp.net? Why do we use that?
Can viewstate be accessed in another page?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
What is query string with example?
What are the different session state management options available in asp.net?
Why session is more secure than cookies?
Name the tools or API for developing or testing web api?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What are user controls?
Explain the difference between singleton and single call?
Explain the boxing and unboxing concept in .net?
How you can access the values from the Repeater control in ASP.NET?
Define cookie.
What is the difference between a multi-layer and multi-tier applications?