Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[submodule "Libs/MyTestLib"]
|
||||
path = Libs/MyTestLib
|
||||
url = https://github.com/kdeng00/MyTestLib
|
||||
Submodule
+1
Submodule Libs/MyTestLib added at 53e54c4998
@@ -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>
|
||||
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user