示例#1
0
        internal MetaDataConfigurationElementCollection GetApplicationElements()
        {
            var coll = new MetaDataConfigurationElementCollection();
            IEnumerator <MetaDataConfigurationElement> enumerator = GetEnumerator();

            while (enumerator.MoveNext())
            {
                MetaDataConfigurationElement element = enumerator.Current;
                if (element != null)
                {
                    coll.BaseAdd(element);
                }
            }
            return(coll);
        }
示例#2
0
        public MetaDataConfigurationElementCollection GetLocalized()
        {
            var coll = new MetaDataConfigurationElementCollection();
            IEnumerator <MetaDataConfigurationElement> enumerator = GetEnumerator();

            while (enumerator.MoveNext())
            {
                MetaDataConfigurationElement element = enumerator.Current;
                if (element != null && element.Localized)
                {
                    //if (element.ApplicationName.Equals(appName, StringComparison.OrdinalIgnoreCase))
                    coll.BaseAdd(element);
                }
            }
            return(coll);
        }