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