Ejemplo n.º 1
0
        public IList <Guid> ParseGuidList(string list, bool unique)
        {
            List <Guid> guids = new List <Guid>();

            foreach (string str in list.Split(new char[] { ',', ';', '|' }))
            {
                Guid guid = GuidOps.Str2Guid(str.Trim());
                if (guid != Guid.Empty)
                {
                    guids.Add(guid);
                }
            }
            if (!unique)
            {
                return(guids);
            }
            return(guids);
        }
Ejemplo n.º 2
0
        public GuidCollection ParseGuidList(string list, bool unique)
        {
            GuidCollection guids = new GuidCollection();

            foreach (string str in list.Split(new char[] { ',', ';', '|' }))
            {
                Guid guid = GuidOps.Str2Guid(str.Trim());
                if (guid != Guid.Empty)
                {
                    guids.Add(guid);
                }
            }
            if (!unique)
            {
                return(guids);
            }
            return(guids.RemoveDuplicates());
        }