Go to the documentation of this file.00001 using System.Configuration;
00002
00003 namespace N2.Configuration
00004 {
00005 public class NamedElement : ConfigurationElement, IIdentifiable
00006 {
00007 [ConfigurationProperty("name", IsRequired = true, IsKey = true)]
00008 public string Name
00009 {
00010 get { return (string)base["name"]; }
00011 set { base["name"] = value; }
00012 }
00013
00014 #region IIdentifiable Members
00015
00016 object IIdentifiable.ElementKey
00017 {
00018 get { return Name; }
00019 set { Name = (string)value; }
00020 }
00021
00022 #endregion
00023 }
00024 }