Skip to content

Commit

Permalink
Merge pull request #40 from tsubakimoto/dotnet-format-5704917394
Browse files Browse the repository at this point in the history
PR from dotnet-format-5704917394 to dt1
  • Loading branch information
tsubakimoto committed Jul 30, 2023
2 parents 97ce660 + 9f0299d commit 88250ff
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 88250ff

Please sign in to comment.