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 differences between application object and session object?
What are assemblies and namespaces and explain the difference between them ?
How can you access the properties and controls of master pages from content pages?
Explain the asp.net session state modes.
What are query strings used for?
How can you handle exceptions in asp.net?
What are the Difference between asp.net and asp ?
How is it possible for .NET to support many languages?
Please brief not about xsd,xslt & xml?
Hi this is the coding for adding data in to an xml table
i want the coding for update and delete
Try
Dim emp_xml_doc As New XmlDocument
If
System.IO.File.Exists(Server.MapPath("emp.xml")) Then
emp_xml_doc.Load(Server.MapPath("emp.xml"))
Dim myrow_element As XmlElement
myrow_element =
emp_xml_doc.CreateElement("EmpDetails")
Dim str As String
str = "
How to create multi language website in asp.net mvc? : Asp.Net MVC
What is caching in asp.net?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What are the main differences between asp and asp.net?
14. What are your Future Plans for Swatz Oils GROUP U.K?