diff --git a/csharp/Antipattern.cs b/csharp/Antipattern.cs index ddc96b70..051195d0 100644 --- a/csharp/Antipattern.cs +++ b/csharp/Antipattern.cs @@ -13,15 +13,9 @@ class Person // Same as auto-property. public string Name { - get - { - return _name; - } + get => _name; - set - { - _name = value; - } + set => _name = value; } }