Tinkr2/4.2/AphelionCore/AphelionCore/Helpers/Strings.cs
/// <summary>
/// Ensures the directory ends with a '\' character
/// </summary>
/// <param name="path">Path to normalize</param>
/// <returns>Returns the normalized path</returns>
Ensures the directory ends with a '\' character
Ensures the directory ends with a ' \ ' character
public static string NormalizeDirectory(string path)
      {
         if (path.Substring(path.Length - 1) != "\\")
         {
            return path + "\\";
         }
         return path;
      }
public static string NormalizeDirectory ( string path ) { if ( path . Substring ( path . Length - 1 ) != " \\ " ) { return path + " \\ " ; } return path ; }
Ensures the directory ends with a '\' character
Ensures the directory ends with a ' \ ' character
Returns the normalized path
Returns the normalized path
path
string
Path to normalize
Path to normalize