public AliasCollectionEnumerator(AliasCollection c) { List <string> completeList = new List <string>(); completeList.AddRange(c.overrides); completeList.AddRange(c.metadataEval()); wrapped = completeList.GetEnumerator(); }
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(); }