using MethodLibrary; namespace MethodDisplayer { public class Program { static void Main(string[] args) { var methodCollections = new List { new Basic(), new Statement(), new Loops(), new Strings() }; foreach (var method in methodCollections) { Console.WriteLine($"====== {method.GetType().Name} ======"); method.DisplayAllMethods(); } } } }