diff --git a/src/compiler/csharp_generator.cc b/src/compiler/csharp_generator.cc
index cc8f5bda71cbe88fd7f08159773b21758de256b1..b139c06014bec833600da14d19e44921acc2aaec 100644
--- a/src/compiler/csharp_generator.cc
+++ b/src/compiler/csharp_generator.cc
@@ -489,7 +489,7 @@ grpc::string GetServices(const FileDescriptor *file) {
   }
   out.Outdent();
   out.Print("}\n");
-  out.Print("#endregion");
+  out.Print("#endregion\n");
   return output;
 }
 
diff --git a/src/csharp/Grpc.Examples/MathGrpc.cs b/src/csharp/Grpc.Examples/MathGrpc.cs
index db680c3da90953e0ccefd8be9ad76043a3a0f213..2546fd220de0eea34ff422041c1971ce2a0e5ae0 100644
--- a/src/csharp/Grpc.Examples/MathGrpc.cs
+++ b/src/csharp/Grpc.Examples/MathGrpc.cs
@@ -119,4 +119,4 @@ namespace math {
     }
   }
 }
-#endregion
\ No newline at end of file
+#endregion
diff --git a/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs b/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
index f232bdc4daea6395584f0a1c6169d1f08655089d..679aafb57a9804636519b3f11912bae6ae474f2f 100644
--- a/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
+++ b/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
@@ -156,4 +156,4 @@ namespace grpc.testing {
     }
   }
 }
-#endregion
\ No newline at end of file
+#endregion