Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionSwitch"/> class.
 /// </summary>
 /// <param name="data">The data.</param>
 /// <param name="property">The property.</param>
 /// <param name="o">The o.</param>
 public CollectionSwitch(SwitchAttribute data, PropertyInfo property, object o)
     : base(data, property, o)
 {
     _collection = (IList)property.GetValue(o, null);
     //TODO: Exctract generic type
     //property.PropertyType.g
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseSwitch"/> class.
 /// </summary>
 /// <param name="data">The data.</param>
 /// <param name="property">The property.</param>
 /// <param name="o">The o.</param>
 protected BaseSwitch(SwitchAttribute data, PropertyInfo property, object o)
 {
     Data     = data;
     Object   = o;
     Property = property;
 }
Пример #3
0
 public PropertySwitch(SwitchAttribute data, PropertyInfo property, object o)
     : base(data, property, o)
 {
 }