diff --git a/dotnet/net8.0/consoleapp/Class1.cs b/dotnet/net8.0/consoleapp/Class1.cs index b9cd1f6..438c75b 100644 --- a/dotnet/net8.0/consoleapp/Class1.cs +++ b/dotnet/net8.0/consoleapp/Class1.cs @@ -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 } +} diff --git a/dotnet/net8.0/consoleapp/Program.cs b/dotnet/net8.0/consoleapp/Program.cs index 55b1765..13b1e2c 100644 --- a/dotnet/net8.0/consoleapp/Program.cs +++ b/dotnet/net8.0/consoleapp/Program.cs @@ -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());