what is the fastest way to concatenate strings in c sharp?
Answers were Sorted based on User's Feedback
Answer / manish sharma
through string builder class is the fastest method.we should
use this method if we have to catenate more than 10 strings.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / biruk solomon
The fastest way to concatinate string is to use
StringBuilder object.In StringBuilder object you can use a
method called Append.It has 19 overloaded method to support
different kind of datatype.You can also include your own
type if you override the toString method as you can also
pass objects to this method.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / sudheer
sorry for last post.This is one is faster than previous one.
string str = "DotNet " + "4.0";
Is This Answer Correct ? | 9 Yes | 3 No |
What is string interpolation in c#?
In dynamic link library, which api is used for load library?
What does assert() do in c#?
i want o/p 011242110 in c# code.
What does it meant to say “the canonical” form of XML ?
What is garbage collection? How to force garbage collector to run?
What are value types in c#?
Give examples for value types?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
What are tuples c#?
How Is The Dll Hell Problem Solved In .net?
what is serilization?