// Conversion from 'TestSharedMesssage' to 'test_shared_messsage'
 public static Proto.Config2.test_shared_messsage ConvertToProto(TestSharedMesssage vm) // Clone.tt Line: 236
 {
     Contract.Requires(vm != null);
     Proto.Config2.test_shared_messsage m = new Proto.Config2.test_shared_messsage(); // Clone.tt Line: 239
     m.BoolValue   = vm.BoolValue;                                                    // Clone.tt Line: 276
     m.StringValue = vm.StringValue;                                                  // Clone.tt Line: 276
     return(m);
 }
 // Conversion from 'test_shared_messsage' to 'TestSharedMesssage'
 public static TestSharedMesssage ConvertToVM(Proto.Config2.test_shared_messsage m, TestSharedMesssage vm) // Clone.tt Line: 170
 {
     Contract.Requires(vm != null);
     if (m == null)
     {
         return(vm);
     }
     vm.IsNotifying = false;
     vm.IsValidate  = false;
     vm.BoolValue   = m.BoolValue;   // Clone.tt Line: 221
     vm.StringValue = m.StringValue; // Clone.tt Line: 221
     vm.IsNotifying = true;
     vm.IsValidate  = true;
     return(vm);
 }