示例#1
0
            public AliasCollectionEnumerator(AliasCollection c)
            {
                List <string> completeList = new List <string>();

                completeList.AddRange(c.overrides);
                completeList.AddRange(c.metadataEval());
                wrapped = completeList.GetEnumerator();
            }
示例#2
0
            public AliasCollectionEnumerator(AliasCollection c)
            {
                this.c = c;
                List <string> completeList = new List <string>();

                completeList.AddRange(c.overrides);
                completeList.AddRange(c.metadataEval());

                int i;

                if (c._defaultAlias != null && (i = completeList.IndexOf(c._defaultAlias)) != 0)
                {
                    completeList.RemoveAt(i);
                    completeList.Insert(0, c._defaultAlias);
                }

                wrapped = completeList.GetEnumerator();
            }