Example #1
0
        public GenericPropertyCollection Clone()
        {
            var properties = new GenericPropertyCollection();

            foreach (var item in this)
            {
                properties.Add(item.Clone());
            }

            return(properties);
        }
Example #2
0
        public GenericPropertyCollection GetPropertiesByScope(string scopeName)
        {
            var result = new GenericPropertyCollection();

            foreach (var item in this)
            {
                if (item.ScopeName == scopeName)
                {
                    result.Add(item);
                }
            }

            return(result);
        }