Go to the documentation of this file.00001 using System.Collections.Generic;
00002 using System.Configuration;
00003
00004 namespace N2.Configuration
00005 {
00009 public class ContainableElement : NamedElement
00010 {
00011 Dictionary<string, string> editableProperties = new Dictionary<string, string>();
00012
00014 [ConfigurationProperty("type", IsRequired = true)]
00015 public string Type
00016 {
00017 get { return (string)base["type"]; }
00018 set { base["type"] = value; }
00019 }
00020
00022 [ConfigurationProperty("title")]
00023 public string Title
00024 {
00025 get { return (string)base["title"]; }
00026 set { base["title"] = value; }
00027 }
00028
00030 [ConfigurationProperty("containerName")]
00031 public string ContainerName
00032 {
00033 get { return (string)base["containerName"]; }
00034 set { base["containerName"] = value; }
00035 }
00036
00038 [ConfigurationProperty("sortOrder")]
00039 public int? SortOrder
00040 {
00041 get { return (int?)base["sortOrder"]; }
00042 set { base["sortOrder"] = value; }
00043 }
00044
00045 public Dictionary<string, string> EditableProperties
00046 {
00047 get { return editableProperties; }
00048 set { editableProperties = value; }
00049 }
00050
00051 protected override bool OnDeserializeUnrecognizedAttribute(string name, string value)
00052 {
00053 EditableProperties[name] = value;
00054 return true;
00055 }
00056 }
00057 }