Substring C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Substring C#

Can anyone please explain me what a Substring is, why it is used and how it is used? Thank you in advance.

23rd Dec 2017, 10:17 PM
Elsayed Salama
Elsayed Salama - avatar
1 Answer
+ 3
Substring is a method to get some part of a string, providing number of chars where begin and end. https://msdn.microsoft.com/en-us/library/aka44szs(v=vs.110).aspx You can use it if you need for example get read of http part in url, and then do something with this url.
23rd Dec 2017, 10:39 PM
Dima Makieiev
Dima Makieiev - avatar