Exemplo n.º 1
0
 public static string[] ToVersion(string version)
 {
     if (version.Trim().Length < 1)
     {
         return(null);
     }
     version = version.Replace("[", "").Replace("${", "").Replace("}", "").Replace("]", "").Replace(",)", "").Replace(")", "").Replace("required-after:", "> ").Replace("after:", "> ");
     return(VersionTools.Split(version.Split(';'), ','));
 }
Exemplo n.º 2
0
        public static string[] AllToVersion(string[] version)
        {
            List <string> list = new List <string>();

            for (int i = 0; i < version.Length; i++)
            {
                list.AddRange(VersionTools.ToVersion(version[i]));
            }
            return(list.ToArray());
        }