You need to write a method that combines an unknown number of strings. The solution must
minimize the amount of memory used by the method when the method executes.
What should you include in the code?
A.
The String.Concat method
B.
The StringBuilder.Append method
C.
The + operator
D.
The += operator
Explanation:
A: String.Concat MethodConcatenates one or more instances of String, or the String representations of the values of
one or more instances of Object.
http://msdn.microsoft.com/es-es/library/ms228504.aspx
http://www.dotnetperls.com/stringbuilder-performance
correct B
B is correct
Stringbuilder is better when the number of string is unknown as well as large amount
B should be correct!I am writing my exam in next hour or so.
CEVAP B BEYLER
CEVAP A CEVAP A