Mega Code Archive

 
Categories / C# / Data Types
 

Ensure End With SemiColon

using System; using System.Collections.Generic; using System.Text; internal static class Util {     internal static string EnsureEndWithSemiColon(string value)     {         if (value != null)         {             int length = value.Length;             if ((length > 0) && (value[length - 1] != ';'))             {                 return (value + ";");             }         }         return value;     } }