[dotnet] Add dotnet projects and examples

+ Sitemap generator I created while learning the dispose pattern
+ Testing project for learning general C#
This commit is contained in:
2022-05-04 12:55:23 -04:00
parent 6dbac7559a
commit d1fb33c58e
26 changed files with 2927 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\KlipsLibrary\KlipsLibrary.csproj" />
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,14 @@
using KlipsLibrary;
Klips.SayHello();
int[] arr = { 2, 4, 6, 2, 1, 44, 10 };
Klips.Print(arr);
Console.WriteLine();
HashSet<string> set = new HashSet<string>(){ "hi", "my", "name", "is", "shaun" };
Klips.Print(set);
Console.WriteLine();
// Test other C# containers
Klips.TestContainers();