Exemple #1
0
        public List <int> GetImages()
        {
            List <int> idList = new List <int> {
            };
            int startpos = 0, endpos = 0;

            for (int i = 0; i < ImageId.Length; i++)
            {
                if (ImageId[i].Equals('|'))
                {
                    endpos = i;
                    idList.Add(int.Parse(ImageId.Substring(startpos, endpos - startpos)));
                    startpos = i + 1;
                }
            }
            return(idList);
        }