Update Lesson 4 Task 2 to assign properties the way used before

This commit is contained in:
Stanislav Mykhailenko 2023-04-16 19:32:25 +03:00
parent 505a63f5d4
commit bc0c959d5e
GPG key ID: 1E95E66A9C9D6A36
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,6 @@ namespace Open_Closed.Classes
{
public class FireMagic : IMagic
{
public string MagicType { get { return "fire"; } }
public string MagicType { get; } = "fire";
}
}

View file

@ -4,6 +4,6 @@ namespace Open_Closed.Classes
{
public class WaterMagic : IMagic
{
public string MagicType { get { return "water"; } }
public string MagicType { get; } = "water";
}
}