Blog Archives

Visual Studio String Functions-CSharp

string sHold = “”; int nIndex = 0; //Replaces a string with a specified string. sHold = “String Test”; sHold = sHold.Replace(“String”, “Replace”); //Returns “Replace Test” //Removes a specified number of characters from a string //The first number is the

Tagged with: , , , , ,
Posted in Visual Studio Code Examples