From fe065402c48c6b79d6d465238dcb99e87851fe2b Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 13:07:28 +0000 Subject: [PATCH] [Sync Iteration] csharp/secure-munchester-united/1 --- .../1/SecureMunchesterUnited.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs diff --git a/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs b/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs new file mode 100644 index 0000000..e0c2b8b --- /dev/null +++ b/solutions/csharp/secure-munchester-united/1/SecureMunchesterUnited.cs @@ -0,0 +1,38 @@ +public class SecurityPassMaker +{ + public string GetDisplayName(TeamSupport support) + { + if(support is Staff){ + if(support.GetType() == typeof(Security)) + return support.Title + " Priority Personnel"; + else + return support.Title; + } + else + return "Too Important for a Security Pass"; + } +} + +/**** Please do not alter the code below ****/ + +public interface TeamSupport { string Title { get; } } + +public abstract class Staff : TeamSupport { public abstract string Title { get; } } + +public class Manager : TeamSupport { public string Title { get; } = "The Manager"; } + +public class Chairman : TeamSupport { public string Title { get; } = "The Chairman"; } + +public class Physio : Staff { public override string Title { get; } = "The Physio"; } + +public class OffensiveCoach : Staff { public override string Title { get; } = "Offensive Coach"; } + +public class GoalKeepingCoach : Staff { public override string Title { get; } = "Goal Keeping Coach"; } + +public class Security : Staff { public override string Title { get; } = "Security Team Member"; } + +public class SecurityJunior : Security { public override string Title { get; } = "Security Junior"; } + +public class SecurityIntern : Security { public override string Title { get; } = "Security Intern"; } + +public class PoliceLiaison : Security { public override string Title { get; } = "Police Liaison Officer"; }