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"

27th Feb 2018, 9:57 AM
Constantine Ilkov
Constantine Ilkov - avatar
1 Odpowiedź
0
Например написать бота. Example create a bot.
27th Feb 2018, 10:10 AM
Oleksii Anatoliyovich
Oleksii Anatoliyovich - avatar