C#:Substring

From Progzoo

Use substring(a,b) to get part of a string.

Substring(5,2) extracts 2 characters from position 5.

0123456789101112
One two three
four five six



[Font] [Default] [Show] [Resize] [History] [Profile]

Use substring(a) to get part of a string.

substring(5) extracts characters form position 5 to the end.

0123456789101112
One two three
four five six


[Font] [Default] [Show] [Resize] [History] [Profile]