G Guest Feb 6, 2007 #1 Which one of the following two ways of concatenating a string is more efficient? “String†+ “sâ€; “String†+‘s’;
Which one of the following two ways of concatenating a string is more efficient? “String†+ “sâ€; “String†+‘s’;
M Michael Nemtsev Feb 6, 2007 #2 Hello AVL, A> Which one of the following two ways of concatenating a string is more A> efficient? A> “String” + “s”; A> “String” +‘s’; second case performed via boxing, coz char is value type. First case “String” + “s”; is more efficient from both --- WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour team blog: http://devkids.blogspot.com/ "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo
Hello AVL, A> Which one of the following two ways of concatenating a string is more A> efficient? A> “String” + “s”; A> “String” +‘s’; second case performed via boxing, coz char is value type. First case “String” + “s”; is more efficient from both --- WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour team blog: http://devkids.blogspot.com/ "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo