Convert String To Upper Ignore Null
//http://validationframework.codeplex.com/ //License: Microsoft Permissive License (Ms-PL) v1.1 using System; using System.Globalization; using System.IO; using System.Text; using System.Xml; namespace ValidationFramework.Extensions { /// <summary> /// String helper methods /// </summary> public static class StringExtensions { internal static string ToUpperIgnoreNull(this string value) { if (value != null) { value = value.ToUpper(CultureInfo.InvariantCulture); } return value; } } }
String