protected CollectionObjectModel(ObjectModel parent, string name, Type type, object value, ModelOptions options, ObjectTag tag) : base(parent, name, type, value, options, tag) { }
public SimpleObjectModel(ObjectModel parent, string name, Type type, object value, ModelOptions options, ObjectTag tag) : base(parent, name, type, value, options, tag) { }
public EnumObjectModel(ObjectModel parent, string name, Type type, object value, ModelOptions options, ObjectTag tag) : base(parent, name, type, value, options, tag) { EnumValues = Enum.GetValues(Type).Cast <object>().ToList(); }
public ComplexObjectModel(ObjectModel parent, string name, Type type, object value, ModelOptions options, ObjectTag tag) : base(parent, name, type, value, options, tag) { Properties = Type.GetProperties(BindingFlags.Public | BindingFlags.Instance) .Select(p => For(this, p.Name, p.PropertyType, value == null ? p.PropertyType.GetDefaultValue() : p.GetValue(Value))) .ToList(); }