Trim in C#
Trim in C#
using System; public class Program { public static void Main() { Console.WriteLine("Trim in C#\n"); string s1 = " Lorem Ipsum "; string s2 = s1.Trim(); // ! is added here to see the space present or not Console.WriteLine("!" + s2 + "!"); } }DEMO
Trim in C#
Reviewed by Bhaumik Patel
on
9:13 PM
Rating: