├── ReverseArray ├── Program.cs └── ReverseArray.csproj ├── global.json ├── README.md ├── ReverseNumberA ├── Program.cs └── ReverseNumberA.csproj ├── GetPrime ├── Program.cs └── GetPrime.csproj ├── ReverseNumberB ├── Program.cs └── ReverseNumberB.csproj ├── GetMax ├── Program.cs └── GetMax.csproj ├── IsSymmetric ├── Program.cs └── IsSymmetric.csproj ├── SwapMaxMin ├── SwapMaxMin.csproj └── Program.cs ├── IsPrime ├── IsPrime.csproj └── Program.cs ├── FindIndex ├── FindIndex.csproj └── Program.cs ├── GetArrayData ├── GetArrayData.csproj └── Program.cs ├── IndexOfArray ├── IndexOfArray.csproj └── Program.cs ├── DataTypeChecker ├── DataTypeChecker.csproj └── Program.cs ├── GetMaxofMaxRow ├── GetMaxofMaxRow.csproj └── Program.cs ├── InvokeDelegate ├── InvokeDelegate.csproj └── Program.cs ├── StringBenchmark ├── StringBenchmark.csproj └── Program.cs ├── GetNumberFromRandom ├── GetNumberFromRandom.csproj └── Program.cs ├── Algorithms-CSharp.sln └── .gitignore /ReverseArray/Program.cs: -------------------------------------------------------------------------------- 1 | int[] arr = { 1, 2, 3, 4, 5, 6, 7 }; 2 | 3 | for (int i = arr.Length - 1; i >= 0; i--) Console.Write(arr[i] + " "); -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "7.0.0", 4 | "rollForward": "latestMajor", 5 | "allowPrerelease": false 6 | } 7 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # C# .NET 5< Algorithms 2 | 3 | New C# top-level statements 4 | 5 | -------------------------------------------------------------------------------- /ReverseNumberA/Program.cs: -------------------------------------------------------------------------------- 1 | int num = 480456833; 2 | 3 | while (num != 0) 4 | { 5 | int a = num % 10; 6 | num /= 10; 7 | Console.Write(a); 8 | } -------------------------------------------------------------------------------- /GetPrime/Program.cs: -------------------------------------------------------------------------------- 1 | int num = 456428567; 2 | 3 | while (num != 0) 4 | { 5 | int n = num % 10; 6 | num /= 10; 7 | if (n is 2 or 3 or 5 or 7) Console.Write($"{n}, "); 8 | } -------------------------------------------------------------------------------- /ReverseNumberB/Program.cs: -------------------------------------------------------------------------------- 1 | int num = 480456833; 2 | 3 | int a = 0; 4 | while (num != 0) 5 | { 6 | a = a * 10 + num % 10; 7 | num /= 10; 8 | } 9 | 10 | Console.WriteLine(a); -------------------------------------------------------------------------------- /GetMax/Program.cs: -------------------------------------------------------------------------------- 1 | int num = 48456833; 2 | 3 | int max = 0; 4 | while (num != 0) 5 | { 6 | int a = num % 10; 7 | num /= 10; 8 | if (a > max) max = a; 9 | } 10 | 11 | Console.WriteLine(max); -------------------------------------------------------------------------------- /IsSymmetric/Program.cs: -------------------------------------------------------------------------------- 1 | const int origin = 343343; 2 | int num = origin; 3 | 4 | int rev = 0; 5 | while (num != 0) 6 | { 7 | rev = rev * 10 + num % 10; 8 | num /= 10; 9 | } 10 | 11 | Console.WriteLine(origin == rev ? "Is Symmetric" : "Is Asymmetric"); -------------------------------------------------------------------------------- /SwapMaxMin/SwapMaxMin.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetMax/GetMax.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /IsPrime/IsPrime.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /FindIndex/FindIndex.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetPrime/GetPrime.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReverseNumberB/ReverseNumberB.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetArrayData/GetArrayData.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /IndexOfArray/IndexOfArray.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /IsSymmetric/IsSymmetric.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReverseArray/ReverseArray.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /DataTypeChecker/DataTypeChecker.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetMaxofMaxRow/GetMaxofMaxRow.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /InvokeDelegate/InvokeDelegate.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReverseNumberA/ReverseNumberA.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /StringBenchmark/StringBenchmark.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetNumberFromRandom/GetNumberFromRandom.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | enable 7 | enable 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GetNumberFromRandom/Program.cs: -------------------------------------------------------------------------------- 1 | int attempt = 0; 2 | int randomNumber; 3 | Random rnd = new(); 4 | do 5 | { 6 | randomNumber = rnd.Next(1, 100000); 7 | Console.WriteLine($"Number - {randomNumber}"); 8 | attempt++; 9 | } while (randomNumber != 777); 10 | 11 | Console.WriteLine($"Total number of attempts - {attempt}"); -------------------------------------------------------------------------------- /SwapMaxMin/Program.cs: -------------------------------------------------------------------------------- 1 | int[] arr = { 3, 1, 6, 4 }; 2 | 3 | int max = arr[0], min = arr[0], maxIndex = 0, minIndex = 0; 4 | 5 | for (int i = 0; i < arr.Length; i++) 6 | { 7 | if (max < arr[i]) 8 | { 9 | max = arr[i]; 10 | maxIndex = i; 11 | } 12 | else if (min > arr[i]) 13 | { 14 | min = arr[i]; 15 | minIndex = i; 16 | } 17 | } 18 | arr[maxIndex] = min; 19 | arr[minIndex] = max; 20 | 21 | foreach (int t in arr) Console.Write(t + " "); -------------------------------------------------------------------------------- /GetMaxofMaxRow/Program.cs: -------------------------------------------------------------------------------- 1 | int[] arr = { 24234, 23131, 599657568, 313123, 67567, 92123123, 23234, 132131 }; 2 | 3 | int maxArr = arr[0]; 4 | int maxIndex = 0; 5 | for (int i = 1; i < arr.Length; i++) 6 | { 7 | if (maxArr < arr[i]) 8 | { 9 | maxArr = arr[i]; 10 | maxIndex = i; 11 | } 12 | } 13 | 14 | int max = 0; 15 | while (maxArr != 0) 16 | { 17 | int a = maxArr % 10; 18 | maxArr /= 10; 19 | if (max < a) max = a; 20 | } 21 | 22 | Console.WriteLine($"Max Number: {max}, Index: {maxIndex}"); -------------------------------------------------------------------------------- /GetArrayData/Program.cs: -------------------------------------------------------------------------------- 1 | int[] arr = {15, 23, 36, 17, 18}; 2 | foreach (int i in arr) Console.Write(i + " "); 3 | 4 | Console.WriteLine("\r\n"); 5 | 6 | int max = arr[0], min = arr[0], sum = 0, even = 0, odd = 0; 7 | 8 | foreach (int i in arr) 9 | { 10 | sum += i; 11 | if (i > max) max = i; 12 | else if (i < min) min = i; 13 | else if (i % 2 == 0 && i > even) even = i; 14 | else if (i > odd) odd = i; 15 | } 16 | 17 | int average = sum / arr.Length; 18 | 19 | Console.WriteLine($"Summary: {sum} \r\n Average: {average} \r\n Max: {max} \r\n Min: {min} \r\n Even: {even} \r\n Odd: {odd}"); -------------------------------------------------------------------------------- /InvokeDelegate/Program.cs: -------------------------------------------------------------------------------- 1 | namespace InvokeDelegate; 2 | 3 | internal static class Program 4 | { 5 | private delegate void MyDelegate(string text); 6 | 7 | private static void Main() 8 | { 9 | MyDelegate myDelegate = Sing; 10 | myDelegate += Dance; 11 | 12 | myDelegate.Invoke("I am "); 13 | myDelegate.Invoke("He is "); 14 | myDelegate.Invoke("She is "); 15 | myDelegate.Invoke("We are "); 16 | myDelegate.Invoke("They are "); 17 | } 18 | 19 | #region Methods 20 | 21 | private static void Sing(string text) 22 | { 23 | Console.WriteLine(text + "singing"); 24 | } 25 | 26 | private static void Dance(string text) 27 | { 28 | Console.WriteLine(text + "dancing"); 29 | } 30 | 31 | #endregion Methods 32 | } -------------------------------------------------------------------------------- /IsPrime/Program.cs: -------------------------------------------------------------------------------- 1 | while (true) 2 | { 3 | int number = GetPositiveIntegerFromUser(); 4 | bool isPrime = IsPrime(number); 5 | Console.WriteLine($"{number} is {(isPrime ? "" : "NOT ")}a prime number. "); 6 | } 7 | 8 | static int GetPositiveIntegerFromUser() 9 | { 10 | while (true) 11 | { 12 | Console.Write("Enter a positive integer: "); 13 | string? input = Console.ReadLine(); 14 | if (int.TryParse(input, out int number) && number > 0) return number; 15 | Console.WriteLine("ERROR: Invalid input. Please enter a positive integer."); 16 | } 17 | } 18 | 19 | static bool IsPrime(int number) 20 | { 21 | if (number < 2) return false; 22 | if (number is 2 or 3) return true; 23 | if (number % 2 == 0 || number % 3 == 0) return false; 24 | 25 | int sqrtNumber = (int)Math.Sqrt(number); 26 | for (int i = 5; i <= sqrtNumber; i += 6) 27 | { 28 | if (number % i == 0 || number % (i + 2) == 0) return false; 29 | } 30 | 31 | return true; 32 | } -------------------------------------------------------------------------------- /IndexOfArray/Program.cs: -------------------------------------------------------------------------------- 1 | int[] array = new int[100]; 2 | for (int i = 0; i < 99; i++) array[i] = 0; 3 | 4 | Random random = new(); 5 | int randomIndex = random.Next(1, 100); 6 | array[randomIndex] = 1; 7 | 8 | foreach (int i in array) 9 | { 10 | if (i == 1) 11 | { 12 | Console.ForegroundColor = ConsoleColor.Red; 13 | Console.Write(1); 14 | Console.ResetColor(); 15 | } 16 | else Console.Write(i); 17 | } 18 | 19 | (int, int) indexAndAttempts = FindIndexAndAttempts(array); 20 | Console.WriteLine("\r\nIndex: " + indexAndAttempts.Item1 + ", Attempts: " + indexAndAttempts.Item2); 21 | 22 | static (int, int) FindIndexAndAttempts(IReadOnlyList array) 23 | { 24 | int attempts = 0; 25 | int count = array.Count; 26 | 27 | for (int i = count / 2; i < count; i++) 28 | { 29 | attempts++; 30 | if (array[i] == 1) 31 | { 32 | return (i, attempts); 33 | } 34 | } 35 | for (int i = count / 2 - 1; i > 0; i--) 36 | { 37 | attempts++; 38 | if (array[i] == 1) 39 | { 40 | return (i, attempts); 41 | } 42 | } 43 | return (-1, attempts); 44 | } -------------------------------------------------------------------------------- /FindIndex/Program.cs: -------------------------------------------------------------------------------- 1 | int[] array = new int[100]; 2 | 3 | for (int i = 0; i < 99; i++) 4 | { 5 | array[i] = 0; 6 | } 7 | 8 | Random random = new(); 9 | int randomIndex = random.Next(1, 100); 10 | array[randomIndex] = 1; 11 | 12 | foreach (int i in array) 13 | { 14 | if (i == 1) 15 | { 16 | Console.ForegroundColor = ConsoleColor.Red; 17 | Console.Write(1); 18 | Console.ResetColor(); 19 | } 20 | else 21 | { 22 | Console.Write(i); 23 | } 24 | } 25 | 26 | Console.WriteLine(); 27 | Console.WriteLine(array.Length); 28 | 29 | (int, int) index2 = MyMethod(array); 30 | Console.WriteLine("Index: " + index2.Item1 + ", Attempts: " + index2.Item2); 31 | 32 | Console.ReadLine(); 33 | 34 | static (int, int) MyMethod(int[] x) 35 | { 36 | int attempts = 0; 37 | int length = x.Length; 38 | int half = length / 2; 39 | 40 | for (int i = half; i < length; i++) 41 | { 42 | attempts++; 43 | if (x[i] == 1) return (i, attempts); 44 | } 45 | 46 | for (int i = half - 1; i > 0; i--) 47 | { 48 | attempts++; 49 | if (x[i] == 1) return (i, attempts); 50 | } 51 | 52 | return (-1, attempts); 53 | } -------------------------------------------------------------------------------- /StringBenchmark/Program.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using System.Text; 3 | 4 | const int max = 100000; 5 | StringConcat(); // 83s 6 | StringConcatMethod(); // 83s 7 | StringBuilderAppend(); //00s 8 | 9 | static void StringConcat() 10 | { 11 | Console.WriteLine($"String+String {max} times"); 12 | 13 | Stopwatch stopwatch = new(); 14 | string text = "s"; 15 | stopwatch.Start(); 16 | for (int i = 0; i < max; i++) text += i; 17 | stopwatch.Stop(); 18 | 19 | Console.WriteLine($"Time: {stopwatch.Elapsed}\r\n"); 20 | } 21 | static void StringConcatMethod() 22 | { 23 | Console.WriteLine($"String.Concat() {max} times"); 24 | 25 | Stopwatch stopwatch = new(); 26 | string text = "s"; 27 | stopwatch.Start(); 28 | for (int i = 0; i < max; i++) text = string.Concat(text, i); 29 | stopwatch.Stop(); 30 | 31 | Console.WriteLine($"Time: {stopwatch.Elapsed}\r\n"); 32 | } 33 | static void StringBuilderAppend() 34 | { 35 | Console.WriteLine($"StringBuilder.Append() {max} times"); 36 | 37 | Stopwatch stopwatch = new(); 38 | StringBuilder text = new("b"); 39 | stopwatch.Start(); 40 | for (int i = 0; i < max; i++) text.Append(i); 41 | stopwatch.Stop(); 42 | 43 | Console.WriteLine($"Time: {stopwatch.Elapsed}\r\n"); 44 | } -------------------------------------------------------------------------------- /DataTypeChecker/Program.cs: -------------------------------------------------------------------------------- 1 | while (true) 2 | { 3 | Console.Write(">> Enter the name of a data type (e.g. int, float, double): "); 4 | string input = Console.ReadLine() ?? ""; 5 | 6 | Dictionary types = new() 7 | { 8 | { "bool", (sizeof(bool), bool.FalseString, bool.TrueString) }, 9 | { "byte", (sizeof(byte), byte.MinValue, byte.MaxValue) }, 10 | { "sbyte", (sizeof(sbyte), sbyte.MinValue, sbyte.MaxValue) }, 11 | { "char", (sizeof(char), char.MinValue, char.MaxValue) }, 12 | { "short", (sizeof(short), short.MinValue, short.MaxValue) }, 13 | { "ushort", (sizeof(ushort), ushort.MinValue, ushort.MaxValue) }, 14 | { "int", (sizeof(int), int.MinValue, int.MaxValue) }, 15 | { "uint", (sizeof(uint), uint.MinValue, uint.MaxValue) }, 16 | { "long", (sizeof(long), long.MinValue, long.MaxValue) }, 17 | { "ulong", (sizeof(ulong), ulong.MinValue, ulong.MaxValue) }, 18 | { "float", (sizeof(float), float.MinValue, float.MaxValue) }, 19 | { "double", (sizeof(double), double.MinValue, double.MaxValue) }, 20 | { "decimal", (sizeof(decimal), decimal.MinValue, decimal.MaxValue) } 21 | }; 22 | 23 | if (types.ContainsKey(input)) 24 | { 25 | (int size, dynamic min, dynamic max) = types[input]; 26 | Console.WriteLine($"Memory size: {size} bytes\nMinimum value: {min}\nMaximum value: {max}"); 27 | } 28 | else 29 | { 30 | Console.WriteLine("Invalid data type name."); 31 | } 32 | } -------------------------------------------------------------------------------- /Algorithms-CSharp.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32804.467 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IsPrime", "IsPrime\IsPrime.csproj", "{F69E9D4A-C96D-437A-9275-26C6DF1A6950}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SwapMaxMin", "SwapMaxMin\SwapMaxMin.csproj", "{520201FC-181E-4F17-9C8F-DBD2BCBC2152}" 9 | EndProject 10 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReverseNumberA", "ReverseNumberA\ReverseNumberA.csproj", "{944C3902-BD44-4DA0-AEB5-7B47E612747C}" 11 | EndProject 12 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReverseArray", "ReverseArray\ReverseArray.csproj", "{8DCCC522-EC33-4462-8136-CFA912FB7B7F}" 13 | EndProject 14 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IsSymmetric", "IsSymmetric\IsSymmetric.csproj", "{55832A57-BA9E-4B29-A56F-140AE414EF93}" 15 | EndProject 16 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetPrime", "GetPrime\GetPrime.csproj", "{A3B7CC19-D481-4E29-BCA9-5B88EB4EC81A}" 17 | EndProject 18 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetNumberFromRandom", "GetNumberFromRandom\GetNumberFromRandom.csproj", "{057B6FC4-90F3-41DA-B5F5-6C67F8949049}" 19 | EndProject 20 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetMaxofMaxRow", "GetMaxofMaxRow\GetMaxofMaxRow.csproj", "{7F1617C9-2BD0-4FFA-BB20-9EA8CD294EC2}" 21 | EndProject 22 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetMax", "GetMax\GetMax.csproj", "{9CEA4242-730F-4E2A-A276-A7177D0B46EC}" 23 | EndProject 24 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GetArrayData", "GetArrayData\GetArrayData.csproj", "{CD1ECB50-45C6-4348-884A-A2210BA34541}" 25 | EndProject 26 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReverseNumberB", "ReverseNumberB\ReverseNumberB.csproj", "{DFEBA44C-285A-4ADE-B62B-432A284336B9}" 27 | EndProject 28 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IndexOfArray", "IndexOfArray\IndexOfArray.csproj", "{111A8DE3-CB37-45E1-B604-775B7030FACE}" 29 | EndProject 30 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InvokeDelegate", "InvokeDelegate\InvokeDelegate.csproj", "{E865BBE6-2844-44E4-A3A3-A0B6B5AB1A5D}" 31 | EndProject 32 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StringBenchmark", "StringBenchmark\StringBenchmark.csproj", "{CB3AD665-D54E-4C25-9958-379059A89B1D}" 33 | EndProject 34 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTypeChecker", "DataTypeChecker\DataTypeChecker.csproj", "{61D19E32-AC2E-4E94-A1F6-26941F13F421}" 35 | EndProject 36 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FindIndex", "FindIndex\FindIndex.csproj", "{3266B188-2C52-4511-A58E-EE507FF58439}" 37 | EndProject 38 | Global 39 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 40 | Debug|Any CPU = Debug|Any CPU 41 | Release|Any CPU = Release|Any CPU 42 | EndGlobalSection 43 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 44 | {F69E9D4A-C96D-437A-9275-26C6DF1A6950}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 45 | {F69E9D4A-C96D-437A-9275-26C6DF1A6950}.Debug|Any CPU.Build.0 = Debug|Any CPU 46 | {F69E9D4A-C96D-437A-9275-26C6DF1A6950}.Release|Any CPU.ActiveCfg = Release|Any CPU 47 | {F69E9D4A-C96D-437A-9275-26C6DF1A6950}.Release|Any CPU.Build.0 = Release|Any CPU 48 | {520201FC-181E-4F17-9C8F-DBD2BCBC2152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 49 | {520201FC-181E-4F17-9C8F-DBD2BCBC2152}.Debug|Any CPU.Build.0 = Debug|Any CPU 50 | {520201FC-181E-4F17-9C8F-DBD2BCBC2152}.Release|Any CPU.ActiveCfg = Release|Any CPU 51 | {520201FC-181E-4F17-9C8F-DBD2BCBC2152}.Release|Any CPU.Build.0 = Release|Any CPU 52 | {944C3902-BD44-4DA0-AEB5-7B47E612747C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 53 | {944C3902-BD44-4DA0-AEB5-7B47E612747C}.Debug|Any CPU.Build.0 = Debug|Any CPU 54 | {944C3902-BD44-4DA0-AEB5-7B47E612747C}.Release|Any CPU.ActiveCfg = Release|Any CPU 55 | {944C3902-BD44-4DA0-AEB5-7B47E612747C}.Release|Any CPU.Build.0 = Release|Any CPU 56 | {8DCCC522-EC33-4462-8136-CFA912FB7B7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 57 | {8DCCC522-EC33-4462-8136-CFA912FB7B7F}.Debug|Any CPU.Build.0 = Debug|Any CPU 58 | {8DCCC522-EC33-4462-8136-CFA912FB7B7F}.Release|Any CPU.ActiveCfg = Release|Any CPU 59 | {8DCCC522-EC33-4462-8136-CFA912FB7B7F}.Release|Any CPU.Build.0 = Release|Any CPU 60 | {55832A57-BA9E-4B29-A56F-140AE414EF93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 61 | {55832A57-BA9E-4B29-A56F-140AE414EF93}.Debug|Any CPU.Build.0 = Debug|Any CPU 62 | {55832A57-BA9E-4B29-A56F-140AE414EF93}.Release|Any CPU.ActiveCfg = Release|Any CPU 63 | {55832A57-BA9E-4B29-A56F-140AE414EF93}.Release|Any CPU.Build.0 = Release|Any CPU 64 | {A3B7CC19-D481-4E29-BCA9-5B88EB4EC81A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 65 | {A3B7CC19-D481-4E29-BCA9-5B88EB4EC81A}.Debug|Any CPU.Build.0 = Debug|Any CPU 66 | {A3B7CC19-D481-4E29-BCA9-5B88EB4EC81A}.Release|Any CPU.ActiveCfg = Release|Any CPU 67 | {A3B7CC19-D481-4E29-BCA9-5B88EB4EC81A}.Release|Any CPU.Build.0 = Release|Any CPU 68 | {057B6FC4-90F3-41DA-B5F5-6C67F8949049}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 69 | {057B6FC4-90F3-41DA-B5F5-6C67F8949049}.Debug|Any CPU.Build.0 = Debug|Any CPU 70 | {057B6FC4-90F3-41DA-B5F5-6C67F8949049}.Release|Any CPU.ActiveCfg = Release|Any CPU 71 | {057B6FC4-90F3-41DA-B5F5-6C67F8949049}.Release|Any CPU.Build.0 = Release|Any CPU 72 | {7F1617C9-2BD0-4FFA-BB20-9EA8CD294EC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 73 | {7F1617C9-2BD0-4FFA-BB20-9EA8CD294EC2}.Debug|Any CPU.Build.0 = Debug|Any CPU 74 | {7F1617C9-2BD0-4FFA-BB20-9EA8CD294EC2}.Release|Any CPU.ActiveCfg = Release|Any CPU 75 | {7F1617C9-2BD0-4FFA-BB20-9EA8CD294EC2}.Release|Any CPU.Build.0 = Release|Any CPU 76 | {9CEA4242-730F-4E2A-A276-A7177D0B46EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 77 | {9CEA4242-730F-4E2A-A276-A7177D0B46EC}.Debug|Any CPU.Build.0 = Debug|Any CPU 78 | {9CEA4242-730F-4E2A-A276-A7177D0B46EC}.Release|Any CPU.ActiveCfg = Release|Any CPU 79 | {9CEA4242-730F-4E2A-A276-A7177D0B46EC}.Release|Any CPU.Build.0 = Release|Any CPU 80 | {CD1ECB50-45C6-4348-884A-A2210BA34541}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 81 | {CD1ECB50-45C6-4348-884A-A2210BA34541}.Debug|Any CPU.Build.0 = Debug|Any CPU 82 | {CD1ECB50-45C6-4348-884A-A2210BA34541}.Release|Any CPU.ActiveCfg = Release|Any CPU 83 | {CD1ECB50-45C6-4348-884A-A2210BA34541}.Release|Any CPU.Build.0 = Release|Any CPU 84 | {DFEBA44C-285A-4ADE-B62B-432A284336B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 85 | {DFEBA44C-285A-4ADE-B62B-432A284336B9}.Debug|Any CPU.Build.0 = Debug|Any CPU 86 | {DFEBA44C-285A-4ADE-B62B-432A284336B9}.Release|Any CPU.ActiveCfg = Release|Any CPU 87 | {DFEBA44C-285A-4ADE-B62B-432A284336B9}.Release|Any CPU.Build.0 = Release|Any CPU 88 | {111A8DE3-CB37-45E1-B604-775B7030FACE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 89 | {111A8DE3-CB37-45E1-B604-775B7030FACE}.Debug|Any CPU.Build.0 = Debug|Any CPU 90 | {111A8DE3-CB37-45E1-B604-775B7030FACE}.Release|Any CPU.ActiveCfg = Release|Any CPU 91 | {111A8DE3-CB37-45E1-B604-775B7030FACE}.Release|Any CPU.Build.0 = Release|Any CPU 92 | {E865BBE6-2844-44E4-A3A3-A0B6B5AB1A5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 93 | {E865BBE6-2844-44E4-A3A3-A0B6B5AB1A5D}.Debug|Any CPU.Build.0 = Debug|Any CPU 94 | {E865BBE6-2844-44E4-A3A3-A0B6B5AB1A5D}.Release|Any CPU.ActiveCfg = Release|Any CPU 95 | {E865BBE6-2844-44E4-A3A3-A0B6B5AB1A5D}.Release|Any CPU.Build.0 = Release|Any CPU 96 | {CB3AD665-D54E-4C25-9958-379059A89B1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 97 | {CB3AD665-D54E-4C25-9958-379059A89B1D}.Debug|Any CPU.Build.0 = Debug|Any CPU 98 | {CB3AD665-D54E-4C25-9958-379059A89B1D}.Release|Any CPU.ActiveCfg = Release|Any CPU 99 | {CB3AD665-D54E-4C25-9958-379059A89B1D}.Release|Any CPU.Build.0 = Release|Any CPU 100 | {61D19E32-AC2E-4E94-A1F6-26941F13F421}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 101 | {61D19E32-AC2E-4E94-A1F6-26941F13F421}.Debug|Any CPU.Build.0 = Debug|Any CPU 102 | {61D19E32-AC2E-4E94-A1F6-26941F13F421}.Release|Any CPU.ActiveCfg = Release|Any CPU 103 | {61D19E32-AC2E-4E94-A1F6-26941F13F421}.Release|Any CPU.Build.0 = Release|Any CPU 104 | {3266B188-2C52-4511-A58E-EE507FF58439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 105 | {3266B188-2C52-4511-A58E-EE507FF58439}.Debug|Any CPU.Build.0 = Debug|Any CPU 106 | {3266B188-2C52-4511-A58E-EE507FF58439}.Release|Any CPU.ActiveCfg = Release|Any CPU 107 | {3266B188-2C52-4511-A58E-EE507FF58439}.Release|Any CPU.Build.0 = Release|Any CPU 108 | EndGlobalSection 109 | GlobalSection(SolutionProperties) = preSolution 110 | HideSolutionNode = FALSE 111 | EndGlobalSection 112 | GlobalSection(ExtensibilityGlobals) = postSolution 113 | SolutionGuid = {92CAA942-0075-4066-BB0B-F96DF8FB6A25} 114 | EndGlobalSection 115 | EndGlobal 116 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Visual Studio Code # 2 | .vscode/* 3 | .vscode/settings.json 4 | !.vscode/settings.json 5 | !.vscode/tasks.json 6 | !.vscode/launch.json 7 | !.vscode/extensions.json 8 | .history.vscode/settings.json 9 | 10 | # Local History for Visual Studio Code 11 | .history/ 12 | 13 | # Built Visual Studio Code Extensions 14 | *.vsix 15 | 16 | ## Ignore Visual Studio temporary files, build results, and 17 | ## files generated by popular Visual Studio add-ons. 18 | ## 19 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 20 | 21 | # User-specific files 22 | *.rsuser 23 | *.suo 24 | *.user 25 | *.userosscache 26 | *.sln.docstates 27 | 28 | # User-specific files (MonoDevelop/Xamarin Studio) 29 | *.userprefs 30 | 31 | # Mono auto generated files 32 | mono_crash.* 33 | 34 | # Build results 35 | [Dd]ebug/ 36 | [Dd]ebugPublic/ 37 | [Rr]elease/ 38 | [Rr]eleases/ 39 | x64/ 40 | x86/ 41 | [Ww][Ii][Nn]32/ 42 | [Aa][Rr][Mm]/ 43 | [Aa][Rr][Mm]64/ 44 | bld/ 45 | [Bb]in/ 46 | [Oo]bj/ 47 | [Ll]og/ 48 | [Ll]ogs/ 49 | 50 | # Visual Studio 2015/2017 cache/options directory 51 | .vs/ 52 | # Uncomment if you have tasks that create the project's static files in wwwroot 53 | #wwwroot/ 54 | 55 | # Visual Studio 2017 auto generated files 56 | Generated\ Files/ 57 | 58 | # MSTest test Results 59 | [Tt]est[Rr]esult*/ 60 | [Bb]uild[Ll]og.* 61 | 62 | # NUnit 63 | *.VisualState.xml 64 | TestResult.xml 65 | nunit-*.xml 66 | 67 | # Build Results of an ATL Project 68 | [Dd]ebugPS/ 69 | [Rr]eleasePS/ 70 | dlldata.c 71 | 72 | # Benchmark Results 73 | BenchmarkDotNet.Artifacts/ 74 | 75 | # .NET Core 76 | project.lock.json 77 | project.fragment.lock.json 78 | artifacts/ 79 | 80 | # ASP.NET Scaffolding 81 | ScaffoldingReadMe.txt 82 | 83 | # StyleCop 84 | StyleCopReport.xml 85 | 86 | # Files built by Visual Studio 87 | *_i.c 88 | *_p.c 89 | *_h.h 90 | *.ilk 91 | *.meta 92 | *.obj 93 | *.iobj 94 | *.pch 95 | *.pdb 96 | *.ipdb 97 | *.pgc 98 | *.pgd 99 | *.rsp 100 | *.sbr 101 | *.tlb 102 | *.tli 103 | *.tlh 104 | *.tmp 105 | *.tmp_proj 106 | *_wpftmp.csproj 107 | *.log 108 | *.tlog 109 | *.vspscc 110 | *.vssscc 111 | .builds 112 | *.pidb 113 | *.svclog 114 | *.scc 115 | 116 | # Chutzpah Test files 117 | _Chutzpah* 118 | 119 | # Visual C++ cache files 120 | ipch/ 121 | *.aps 122 | *.ncb 123 | *.opendb 124 | *.opensdf 125 | *.sdf 126 | *.cachefile 127 | *.VC.db 128 | *.VC.VC.opendb 129 | 130 | # Visual Studio profiler 131 | *.psess 132 | *.vsp 133 | *.vspx 134 | *.sap 135 | 136 | # Visual Studio Trace Files 137 | *.e2e 138 | 139 | # TFS 2012 Local Workspace 140 | $tf/ 141 | 142 | # Guidance Automation Toolkit 143 | *.gpState 144 | 145 | # ReSharper is a .NET coding add-in 146 | _ReSharper*/ 147 | *.[Rr]e[Ss]harper 148 | *.DotSettings.user 149 | 150 | # TeamCity is a build add-in 151 | _TeamCity* 152 | 153 | # DotCover is a Code Coverage Tool 154 | *.dotCover 155 | 156 | # AxoCover is a Code Coverage Tool 157 | .axoCover/* 158 | !.axoCover/settings.json 159 | 160 | # Coverlet is a free, cross platform Code Coverage Tool 161 | coverage*.json 162 | coverage*.xml 163 | coverage*.info 164 | 165 | # Visual Studio code coverage results 166 | *.coverage 167 | *.coveragexml 168 | 169 | # NCrunch 170 | _NCrunch_* 171 | .*crunch*.local.xml 172 | nCrunchTemp_* 173 | 174 | # MightyMoose 175 | *.mm.* 176 | AutoTest.Net/ 177 | 178 | # Web workbench (sass) 179 | .sass-cache/ 180 | 181 | # Installshield output folder 182 | [Ee]xpress/ 183 | 184 | # DocProject is a documentation generator add-in 185 | DocProject/buildhelp/ 186 | DocProject/Help/*.HxT 187 | DocProject/Help/*.HxC 188 | DocProject/Help/*.hhc 189 | DocProject/Help/*.hhk 190 | DocProject/Help/*.hhp 191 | DocProject/Help/Html2 192 | DocProject/Help/html 193 | 194 | # Click-Once directory 195 | publish/ 196 | 197 | # Publish Web Output 198 | *.[Pp]ublish.xml 199 | *.azurePubxml 200 | # Note: Comment the next line if you want to checkin your web deploy settings, 201 | # but database connection strings (with potential passwords) will be unencrypted 202 | *.pubxml 203 | *.publishproj 204 | 205 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 206 | # checkin your Azure Web App publish settings, but sensitive information contained 207 | # in these scripts will be unencrypted 208 | PublishScripts/ 209 | 210 | # NuGet Packages 211 | *.nupkg 212 | # NuGet Symbol Packages 213 | *.snupkg 214 | # The packages folder can be ignored because of Package Restore 215 | **/[Pp]ackages/* 216 | # except build/, which is used as an MSBuild target. 217 | !**/[Pp]ackages/build/ 218 | # Uncomment if necessary however generally it will be regenerated when needed 219 | #!**/[Pp]ackages/repositories.config 220 | # NuGet v3's project.json files produces more ignorable files 221 | *.nuget.props 222 | *.nuget.targets 223 | 224 | # Microsoft Azure Build Output 225 | csx/ 226 | *.build.csdef 227 | 228 | # Microsoft Azure Emulator 229 | ecf/ 230 | rcf/ 231 | 232 | # Windows Store app package directories and files 233 | AppPackages/ 234 | BundleArtifacts/ 235 | Package.StoreAssociation.xml 236 | _pkginfo.txt 237 | *.appx 238 | *.appxbundle 239 | *.appxupload 240 | 241 | # Visual Studio cache files 242 | # files ending in .cache can be ignored 243 | *.[Cc]ache 244 | # but keep track of directories ending in .cache 245 | !?*.[Cc]ache/ 246 | 247 | # Others 248 | ClientBin/ 249 | ~$* 250 | *~ 251 | *.dbmdl 252 | *.dbproj.schemaview 253 | *.jfm 254 | *.pfx 255 | *.publishsettings 256 | orleans.codegen.cs 257 | 258 | # Including strong name files can present a security risk 259 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 260 | #*.snk 261 | 262 | # Since there are multiple workflows, uncomment next line to ignore bower_components 263 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 264 | #bower_components/ 265 | 266 | # RIA/Silverlight projects 267 | Generated_Code/ 268 | 269 | # Backup & report files from converting an old project file 270 | # to a newer Visual Studio version. Backup files are not needed, 271 | # because we have git ;-) 272 | _UpgradeReport_Files/ 273 | Backup*/ 274 | UpgradeLog*.XML 275 | UpgradeLog*.htm 276 | ServiceFabricBackup/ 277 | *.rptproj.bak 278 | 279 | # SQL Server files 280 | *.mdf 281 | *.ldf 282 | *.ndf 283 | 284 | # Business Intelligence projects 285 | *.rdl.data 286 | *.bim.layout 287 | *.bim_*.settings 288 | *.rptproj.rsuser 289 | *- [Bb]ackup.rdl 290 | *- [Bb]ackup ([0-9]).rdl 291 | *- [Bb]ackup ([0-9][0-9]).rdl 292 | 293 | # Microsoft Fakes 294 | FakesAssemblies/ 295 | 296 | # GhostDoc plugin setting file 297 | *.GhostDoc.xml 298 | 299 | # Node.js Tools for Visual Studio 300 | .ntvs_analysis.dat 301 | node_modules/ 302 | 303 | # Visual Studio 6 build log 304 | *.plg 305 | 306 | # Visual Studio 6 workspace options file 307 | *.opt 308 | 309 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 310 | *.vbw 311 | 312 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 313 | *.vbp 314 | 315 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 316 | *.dsw 317 | *.dsp 318 | 319 | # Visual Studio 6 technical files 320 | *.ncb 321 | *.aps 322 | 323 | # Visual Studio LightSwitch build output 324 | **/*.HTMLClient/GeneratedArtifacts 325 | **/*.DesktopClient/GeneratedArtifacts 326 | **/*.DesktopClient/ModelManifest.xml 327 | **/*.Server/GeneratedArtifacts 328 | **/*.Server/ModelManifest.xml 329 | _Pvt_Extensions 330 | 331 | # Paket dependency manager 332 | .paket/paket.exe 333 | paket-files/ 334 | 335 | # FAKE - F# Make 336 | .fake/ 337 | 338 | # CodeRush personal settings 339 | .cr/personal 340 | 341 | # Python Tools for Visual Studio (PTVS) 342 | __pycache__/ 343 | *.pyc 344 | 345 | # Cake - Uncomment if you are using it 346 | # tools/** 347 | # !tools/packages.config 348 | 349 | # Tabs Studio 350 | *.tss 351 | 352 | # Telerik's JustMock configuration file 353 | *.jmconfig 354 | 355 | # BizTalk build output 356 | *.btp.cs 357 | *.btm.cs 358 | *.odx.cs 359 | *.xsd.cs 360 | 361 | # OpenCover UI analysis results 362 | OpenCover/ 363 | 364 | # Azure Stream Analytics local run output 365 | ASALocalRun/ 366 | 367 | # MSBuild Binary and Structured Log 368 | *.binlog 369 | 370 | # NVidia Nsight GPU debugger configuration file 371 | *.nvuser 372 | 373 | # MFractors (Xamarin productivity tool) working folder 374 | .mfractor/ 375 | 376 | # Local History for Visual Studio 377 | .localhistory/ 378 | 379 | # Visual Studio History (VSHistory) files 380 | .vshistory/ 381 | 382 | # BeatPulse healthcheck temp database 383 | healthchecksdb 384 | 385 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 386 | MigrationBackup/ 387 | 388 | # Ionide (cross platform F# VS Code tools) working folder 389 | .ionide/ 390 | 391 | # Fody - auto-generated XML schema 392 | FodyWeavers.xsd 393 | 394 | # VS Code files for those working on multiple tools 395 | .vscode/* 396 | !.vscode/settings.json 397 | !.vscode/tasks.json 398 | !.vscode/launch.json 399 | !.vscode/extensions.json 400 | *.code-workspace 401 | 402 | # Local History for Visual Studio Code 403 | .history/ 404 | 405 | # Windows Installer files from build outputs 406 | *.cab 407 | *.msi 408 | *.msix 409 | *.msm 410 | *.msp 411 | 412 | # JetBrains Rider 413 | *.sln.iml 414 | /.vscode 415 | --------------------------------------------------------------------------------