Is string a value type or a reference type?
Answers were Sorted based on User's Feedback
Answer / rajkumar
Basically String is Value type But its Works(Behave) like
Reference Type...
| Is This Answer Correct ? | 1 Yes | 9 No |
Answer / chandrapal singh
string is value type by nature. it does not follow rules
of reference type. eg
string MyName1 = "chandrapal Singh";
string MyName2;
MyName2 = MyName1;
MyName2 = "deepak";
Response.Write("MyName1 :" + MyName1 + " MyName2 :" +
MyName2);
This gives Output
MyName1 :chandrapal Singh MyName2 :deepak
if this is reference type then the output should be
MyName1 :deepak MyName2 :deepak
| Is This Answer Correct ? | 7 Yes | 29 No |
Answer / raju
string is a value type...not reference type....we ll not
create an (instance) for that one...
| Is This Answer Correct ? | 7 Yes | 62 No |
What parameters can you pass in the url of the api? Can get and post use the same url?
What is the difference between CC and BCC?
Which property is used to identify the Page is Post Back in ASP.NET?
0 Answers Sans Pareil IT Services,
What is the difference between union and structure?
which one is faster execute reader, scalar, execute non query ?
Briefly describe the role of global.asax?
Define cookie.
What is a web based system?
What is mta?
Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one
I have a webform in asp.net.In that webform there is 2 division class(DIV).in one of the div class there is a text box for enter the id & a button for to check id with database value.My doubt is that how can i appear the 2nd Div contents only when the id is true with database value.if wrong do not display the div . i Want code in c#.
What is server components?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)