Esempio n. 1
0
        public static CustomString ConcatCustomString(CustomString firstCustomString, CustomString secondCustomString)
        {
            char[] customString = new char[firstCustomString.Length + secondCustomString.Length];

            for (int i = 0; i < firstCustomString.Length + secondCustomString.Length; i++)
            {
                if (i < firstCustomString.Length)
                {
                    customString[i] = firstCustomString[i];
                }
                else
                {
                    customString[i] = secondCustomString[i - firstCustomString.Length];
                }
            }

            return(new CustomString(customString));
        }
Esempio n. 2
0
 public static char[] ReturnArray(CustomString input)
 {
     return((char[])input.customString.Clone());
 }