From bc0c959d5e163dff2ef87e093070a6dbf1166e09 Mon Sep 17 00:00:00 2001 From: Stanislav Mykhailenko Date: Sun, 16 Apr 2023 19:32:25 +0300 Subject: [PATCH] Update Lesson 4 Task 2 to assign properties the way used before --- Lesson_4/Task_2/Classes/FireMagic.cs | 2 +- Lesson_4/Task_2/Classes/WaterMagic.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lesson_4/Task_2/Classes/FireMagic.cs b/Lesson_4/Task_2/Classes/FireMagic.cs index d2d74ca..a27dec0 100644 --- a/Lesson_4/Task_2/Classes/FireMagic.cs +++ b/Lesson_4/Task_2/Classes/FireMagic.cs @@ -4,6 +4,6 @@ namespace Open_Closed.Classes { public class FireMagic : IMagic { - public string MagicType { get { return "fire"; } } + public string MagicType { get; } = "fire"; } } diff --git a/Lesson_4/Task_2/Classes/WaterMagic.cs b/Lesson_4/Task_2/Classes/WaterMagic.cs index 10a84a1..40a12dc 100644 --- a/Lesson_4/Task_2/Classes/WaterMagic.cs +++ b/Lesson_4/Task_2/Classes/WaterMagic.cs @@ -4,6 +4,6 @@ namespace Open_Closed.Classes { public class WaterMagic : IMagic { - public string MagicType { get { return "water"; } } + public string MagicType { get; } = "water"; } }