Adding Method Displayer, and renaming projects
This commit is contained in:
14
MethodDisplayer/MethodDisplayer.csproj
Normal file
14
MethodDisplayer/MethodDisplayer.csproj
Normal 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>
|
||||
24
MethodDisplayer/Program.cs
Normal file
24
MethodDisplayer/Program.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user