Ejemplo n.º 1
0
 public override void AssignToProperty(object obj, PropertyDefinition property)
 {
     if (property.CanSet)
         property.SetOn(obj, GetTypedValue(collectionDef));
     else if (property.CanGet)
         PopulateCollection(collectionDef, property.GetFrom(obj));
 }
Ejemplo n.º 2
0
 public override void AssignToProperty(object obj, PropertyDefinition property)
 {
     if (property.CanSet)
     {
         property.SetOn(obj, GetTypedValue());
     }
     else if (property.CanGet)
     {
         typedDictionary = property.GetFrom(obj) as IDictionary;
         PopulateDictionary();
     }
 }