Inheritance: System.Attribute
コード例 #1
0
        public ConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute)
        {
            Parent = parent;
            Field = field;
            Attribute = attribute;

            if (string.IsNullOrEmpty(attribute.configName))
                Attribute.configName = Field.Name;
        }
コード例 #2
0
 public NodeScalarConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute)
     : base(parent, field, attribute)
 {
     if (!ElementType.DerivesFrom(typeof(IConfigNode)))
         throw new ArgumentException("The type " + ElementType.Name + " does not derive from IConfigNode");
 }
コード例 #3
0
 public ValueScalarConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute)
     : base(parent, field, attribute)
 {
 }
コード例 #4
0
        public ListConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute)
            : base(parent, field, attribute)
        {
            if (!Type.IsListType())
                throw new ArgumentException("The field " + field.Name + " is not a list");

            elementType = Type.GetGenericArguments()[0];
        }