Skip to content

Commit

Permalink
Merge pull request #50 from tsubakimoto/dotnet-format-5706220297
Browse files Browse the repository at this point in the history
PR from dotnet-format-5706220297 to tsubakimoto-patch-1
  • Loading branch information
tsubakimoto authored Jul 30, 2023
2 parents bd57b8f + e6fdcc3 commit 092ee2f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
17 changes: 9 additions & 8 deletions dotnet/net8.0/consoleapp/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
namespace consoleapp;
namespace consoleapp;

internal class Class1
{
private string field1 = "hoge dt1";
{
private string field1 = "hoge dt1";

public string Property1
=> field1 ;
public string Property1
=> field1;

public string Greet () {
return $"Hello, World { Property1 }!" ; // comment
}
public string Greet()
{
return $"Hello, World {Property1}!"; // comment
}
}
10 changes: 5 additions & 5 deletions dotnet/net8.0/consoleapp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// See https://aka.ms/new-console-template for more information
using consoleapp;
// See https://aka.ms/new-console-template for more information
using consoleapp;

var class1 =
new Class1 ( ) ;
Console .WriteLine( class1.Greet() );
var class1 =
new Class1();
Console.WriteLine(class1.Greet());

0 comments on commit 092ee2f

Please sign in to comment.