0
Where can I use it?/Где это можно применить?
string a = "some text"; Console.WriteLine(a.Length); //Outputs 9 Console.WriteLine(a.IndexOf('t')); //Outputs 5 a = a.Insert(0, "This is "); Console.WriteLine(a); //Outputs "This is some text" a = a.Replace("This is", "I am"); Console.WriteLine(a); //Outputs "I am some text" if(a.Contains("some")) Console.WriteLine("found"); //Outputs "found" a = a.Remove(4); Console.WriteLine(a); //Outputs "I am" a = a.Substring(2); Console.WriteLine(a); //Outputs "am"
1 Answer
0
Например написать бота. Example create a bot.