CSharp examples for System:String Case
String To the lower trim.
using System.Web; using System.Text.RegularExpressions; using System.Globalization; using System.Extensions; using System.Web.Mvc; using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System.Collections; using System;//from w ww. j a v a2 s .c o m public class Main{ /// <summary> /// To the lower trim. /// </summary> /// <param name="s">The s.</param> /// <returns></returns> public static string ToLowerTrim(this string s) { if (s == null) return ""; if (s.Trim() == string.Empty) return ""; return s.Trim().ToLower(); } }