string strOld = "ABCD1234" string strNew = strOld.Substring(4, 7);
using System.IO; using System; class Program { static void Main() { string strOld = "ABCD1234"; string strNew = strOld.Substring(4, 4); Console.WriteLine(strNew); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)