[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:
13
dotnet/testing/KlipsConsole/KlipsConsole.csproj
Normal file
13
dotnet/testing/KlipsConsole/KlipsConsole.csproj
Normal 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>
|
||||
14
dotnet/testing/KlipsConsole/Program.cs
Normal file
14
dotnet/testing/KlipsConsole/Program.cs
Normal 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();
|
||||
Reference in New Issue
Block a user