mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +00:00
String.concat ("a" + "b") works
This commit is contained in:
parent
565e749692
commit
2bc11d7bbe
1 changed files with 11 additions and 0 deletions
|
|
@ -20,6 +20,17 @@ namespace Cosmos.Kernel.Plugs
|
|||
return -1;
|
||||
}*/
|
||||
|
||||
public static string Concat(string aStrA, string aStrB) {
|
||||
char[] xChars = new char[aStrA.Length + aStrB.Length];
|
||||
for (int i = 0; i < aStrA.Length; i++) {
|
||||
xChars[i] = aStrA[i];
|
||||
}
|
||||
for (int i = 0; i < aStrB.Length; i++) {
|
||||
xChars[i + aStrA.Length] = aStrB[i];
|
||||
}
|
||||
return new global::System.String(xChars);
|
||||
}
|
||||
|
||||
public static bool EqualsHelper(string aStrA, string aStrB) {
|
||||
return aStrA.CompareTo(aStrB) == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue