luni, 25 august 2014

Substring function C#

Substring function returns a string in a string

Parameters:

         [starting position] [length]

Example:

String myString = "abcdef";
myString = myString.Substring(0, 3); // "abc"

Niciun comentariu:

Trimiteți un comentariu