示例#1
0
 public void ReplaceSymbol(char toReplace, char replacement)
 {
     InitialString = InitialString.Replace(toReplace, replacement);
 }
示例#2
0
        public bool IsSymbolInString(char symbol)
        {
            int indexOfSubstring = InitialString.IndexOf(symbol);

            return(indexOfSubstring >= 0);
        }
示例#3
0
        public bool IsSubstringInString(string substring)
        {
            int indexOfSubstring = InitialString.IndexOf(substring);

            return(indexOfSubstring >= 0);
        }
示例#4
0
        public void ReverseString()
        {
            Words = InitialString.Split(' ');

            Array.Reverse(Words);
        }