00001 using System.Configuration; 00002 00003 namespace N2.Configuration 00004 { 00008 public class MappingCollection : ConfigurationElementCollection 00009 { 00010 protected override ConfigurationElement CreateNewElement() 00011 { 00012 return new MappingElement(); 00013 } 00014 00015 protected override object GetElementKey(ConfigurationElement element) 00016 { 00017 MappingElement me = element as MappingElement; 00018 return me.Name; 00019 } 00020 } 00021 }