Adding Method Displayer, and renaming projects

This commit is contained in:
2025-08-06 14:25:08 +02:00
parent bb32e873c1
commit 866628af59
16 changed files with 71 additions and 39 deletions

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../MethodLibrary/MethodLibrary.csproj" />
</ItemGroup>
</Project>

View File

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