Exemple #1
0
 public static void AllowDependencyInjection(this ViewModelSerializationMap map)
 {
     map.SetConstructor(ActivatorUtilities.CreateFactory(map.Type, Type.EmptyTypes));
 }
Exemple #2
0
 public static void SetConstructor(this ViewModelSerializationMap map, ObjectFactory factory)
 {
     map.SetConstructor(p => factory.Invoke(p, new object[0]));
 }