public ConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute) { Parent = parent; Field = field; Attribute = attribute; if (string.IsNullOrEmpty(attribute.configName)) Attribute.configName = Field.Name; }
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"); }
public ValueScalarConfigFieldInfo(object parent, FieldInfo field, ConfigField attribute) : base(parent, field, attribute) { }
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]; }