Initial commit

This commit is contained in:
kdeng00
2021-02-15 20:58:31 -05:00
commit 45c5ab0160
7 changed files with 49 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "Libs/MyTestLib"]
path = Libs/MyTestLib
url = https://github.com/kdeng00/MyTestLib
+1
Submodule Libs/MyTestLib added at 53e54c4998
View File
+13
View File
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="MyTestLib">
<HintPath>../Libs/MyTestLib/bin/$(Configuration)/netcoreapp3.1/MyTestLib.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using MyTestLib;
namespace MyTestProg
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("MyTestProg");
var testClass = new MyTestClass();
var myList = new List<double>()
{
1, 1, 2, 3, 5, 8, 13
};
var sum = testClass.SumListValues(myList);
Console.WriteLine("Values: ");
foreach(var val in myList)
{
Console.Write($"{val} ");
}
Console.WriteLine($"\nSum: {sum}");
}
}
}
View File
View File