static void Main(string[] args) { var m1 = new ModelType1(); var m2 = new ModelType2(); var obj1 = new ViewModel <ModelType1>(m1); var obj2 = new ViewModel <ModelType2>(m2); }
public ViewModel2(ModelType2 m) { Model = m; }