PI06 i PI06-1. Docker definitions for MSSQL and Postgres. Data seeder/generator for countries and people. Entity Framework example with variants for Postgres and MSSQL
This commit is contained in:
26
SomeOfCSharpFeatures/Delegates/MathTool.cs
Normal file
26
SomeOfCSharpFeatures/Delegates/MathTool.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace Delegates;
|
||||
|
||||
public class MathTool
|
||||
{
|
||||
public static int Sum(int x, int y)
|
||||
{
|
||||
return x + y;
|
||||
}
|
||||
|
||||
public static int Diff(int x, int y)
|
||||
{
|
||||
return x - y;
|
||||
}
|
||||
|
||||
public static void PrintSquare(int x)
|
||||
{
|
||||
Console.WriteLine("x^2 = " + x * x);
|
||||
}
|
||||
|
||||
public static void PrintSquareRoot(int x)
|
||||
{
|
||||
Console.WriteLine("sqrt(x) = " + Math.Sqrt(x));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user