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 are the Custom controls in asp.net?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
What is autopostback true?
Explain the difference between Repeater and Data list control in ASP.NET?
Is web config mandatory?
What is the difference between CC and BCC?
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
What are all the various Estimation Techniques available ?
What are the properties of the eventargs argument when capturing keyboard events?
How do I use response redirect?
What is css and what is it used for?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
Which is an advantage of application service providers?
What is difference cookie and session?
where can i gather the materials for MCP certification