public static void Update(TestSharedMesssage to, ITestSharedMesssage from, bool isDeep = true) // Clone.tt Line: 77 { Contract.Requires(to != null); Contract.Requires(from != null); to.BoolValue = from.BoolValue; // Clone.tt Line: 141 to.StringValue = from.StringValue; // Clone.tt Line: 141 }
public static TestSharedMesssage Clone(ITestSharedMesssage from, bool isDeep = true) // Clone.tt Line: 27 { Contract.Requires(from != null); TestSharedMesssage vm = new TestSharedMesssage(); vm.IsNotifying = false; vm.IsValidate = false; vm.BoolValue = from.BoolValue; // Clone.tt Line: 65 vm.StringValue = from.StringValue; // Clone.tt Line: 65 vm.IsNotifying = true; vm.IsValidate = true; return(vm); }