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
Explain about solution explorer window?
Can we have multiple master pages in asp net?
What is application variable in asp.net?
Why we use asp.net for website development?
Why asp.net is used?
What are the types of authentication in asp.net?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
How to use push notification?
What is the adavantage of using ASP.NET routing?
Is asp.net 64-bit enabled? How?
What is round trip in asp.net?
What is the used of "ispostback" property?
How to handle errors in Web API?
What are the new data controls in asp.net 2.0?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.