Answer Posted / rajneesh hajela
string is immutable
but stringbuildler are mutable...
this play many role
StringBuilder y = new StringBuilder();
y.Append("hello");
StringBuilder x = new StringBuilder();
x.Append("hello");
if (y == x)
{
}
// Stirng is immutable .In some ways it to
be value types .These are known as immutable .
//===================
string str1 = "hello";
string str2 = "hello";
if (str1 == str2)
{
}
//===============
string y1 ="";
y1="hello";
Program p = new Program();
p.foo(ref y1);
Console.WriteLine(y1);
}
void foo(ref string sb)
{
sb="Rajneesh Hajela:";
}
Rajneesh Hajela
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
What is typical about a windows process in regards to memory allocation in dot net?
How do I use the thread pool?
What's wrong with a line like this? Datetime.parse(mystring);
What is RPC? What is the use of it?
What is "common language specification" (cls) in .net?
What is connected and diconnected database ?
How viewstate is being formed and how it's stored on client in .net?
What is reflection and what is it for?
How do you create threading in.net?
Explain security measures exist for .net remoting in system.runtime.remoting?
What is UDDI and how to register the web service in it?
What is difference between .net core and .net standard?
What are the new features in .net core?
A developer company sends dlls to the client. Some client is not happy current functionality, so request some modification. Developer made some changes and send new dll to all clients. Some client is happy with old version, tell me minimal change to so that neither clients get affected?