├── AbstractExample ├── AbstractExample.csproj ├── App.config ├── BigTruck.cs ├── Car.cs ├── Properties │ └── AssemblyInfo.cs ├── SmallCar.cs ├── Startup.cs ├── bin │ └── Debug │ │ ├── AbstractExample.exe │ │ ├── AbstractExample.exe.config │ │ ├── AbstractExample.pdb │ │ ├── AbstractExample.vshost.exe │ │ ├── AbstractExample.vshost.exe.config │ │ └── AbstractExample.vshost.exe.manifest └── obj │ └── Debug │ ├── AbstractExample.csproj.FileListAbsolute.txt │ ├── AbstractExample.csprojResolveAssemblyReference.cache │ ├── AbstractExample.exe │ ├── AbstractExample.pdb │ └── DesignTimeResolveAssemblyReferencesInput.cache ├── Bear And Finding Criminals.cs ├── Bear and Prime_1.cs ├── Bear and Prime_2.cs ├── Bear and Prime_3.cs ├── BlackConsole ├── BlackConsole.sln ├── BlackConsole │ ├── BlackConsole.csproj │ ├── ConsoleStart.cs │ ├── ConsoleStart2.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── bin │ │ ├── Release01 │ │ │ ├── BlackConsole.dll │ │ │ └── BlackConsole.pdb │ │ ├── Release02 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release03 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release04 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release05 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release06 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release07 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release08 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ ├── Release09 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ │ └── Release10 │ │ │ ├── BlackConsole.dll │ │ │ ├── BlackConsole.pdb │ │ │ └── BlackConsole.tlb │ └── obj │ │ ├── BlackConsole.csproj.UnmanagedRegistration.cache │ │ └── Debug │ │ ├── BlackConsole.csproj.FileListAbsolute.txt │ │ ├── BlackConsole.csprojResolveAssemblyReference.cache │ │ ├── BlackConsole.dll │ │ ├── BlackConsole.pdb │ │ └── DesignTimeResolveAssemblyReferencesInput.cache └── Info │ ├── Info.csproj │ ├── MyInfo.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── bin │ └── Debug │ │ ├── Info.dll │ │ └── Info.pdb │ └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── Info.csproj.FileListAbsolute.txt │ ├── Info.csprojResolveAssemblyReference.cache │ ├── Info.dll │ └── Info.pdb ├── Build a .Net library ├── ClassLibraryProjects.sln ├── ShowCase │ ├── ShowCase.csproj │ └── Startup.cs ├── StringLibrary │ ├── StringLibrary.cs │ └── StringLibrary.csproj └── StringLibraryTest │ ├── StringLibraryTest.csproj │ └── UnitTest1.cs ├── CPP ├── Fib3 │ ├── Module.vb │ ├── Source001.cpp │ └── Source001.def └── Link For Download - Codeblocks.txt ├── CSharp_with_VBA.cs ├── CodeForces ├── 030716_code_forces01.cs ├── 030716_code_forces02.cs ├── Prepared.cs ├── bridges.cs ├── cf017_2.cs ├── cf378_2.cs ├── cf383_1.cs ├── cf386_2.cs ├── cf750_2_complicated.cs ├── cf750_2_easy.cs ├── cf762_1.cs ├── cf_449.cs └── cf_449_2.cs ├── ExcelExtractor ├── App.config ├── ExcelExtractor.csproj ├── ExcelExtractor.csproj.user ├── ExcelExtractor.sln ├── ExcelTricks.cs ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── General.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── Startup.cs ├── ExcelInterop ├── ExcelInterop.sln └── ExcelInterop │ ├── App.config │ ├── ExcelInterop.csproj │ ├── Properties │ └── AssemblyInfo.cs │ ├── Startup.cs │ ├── bin │ └── Debug │ │ ├── ExcelInterop.exe │ │ ├── ExcelInterop.exe.config │ │ └── ExcelInterop.pdb │ └── obj │ └── Debug │ ├── CoreCompileInputs.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── ExcelInterop.csproj.FileListAbsolute.txt │ ├── ExcelInterop.csproj.ResolveComReference.cache │ ├── ExcelInterop.csprojResolveAssemblyReference.cache │ ├── ExcelInterop.exe │ └── ExcelInterop.pdb ├── FatSeparatorSplit.cs ├── Fibonacci.Tests ├── Fibonacci.Tests.csproj ├── FibonacciTests.cs ├── Properties │ └── AssemblyInfo.cs ├── bin │ └── Debug │ │ ├── Fibonacci.Tests.dll │ │ ├── Fibonacci.Tests.pdb │ │ ├── Fibonacci.exe │ │ ├── Fibonacci.pdb │ │ └── Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── Fibonacci.Tests.csproj.FileListAbsolute.txt │ ├── Fibonacci.Tests.csprojResolveAssemblyReference.cache │ ├── Fibonacci.Tests.dll │ └── Fibonacci.Tests.pdb ├── Fibonacci ├── App.config ├── Fibonacci.csproj ├── Fibonacci.playlist ├── FibonacciChecks.cs ├── Properties │ └── AssemblyInfo.cs ├── bin │ └── Debug │ │ ├── Fibonacci.exe │ │ ├── Fibonacci.exe.config │ │ ├── Fibonacci.pdb │ │ ├── Fibonacci.vshost.exe │ │ └── Fibonacci.vshost.exe.config └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── Fibonacci.csproj.FileListAbsolute.txt │ ├── Fibonacci.csprojResolveAssemblyReference.cache │ ├── Fibonacci.exe │ └── Fibonacci.pdb ├── FibonacciStuff.cs ├── FibonacciStuff_3_versions.cs ├── FibonacciWithXUnit ├── Fibonacci.cs ├── FibonacciWithXUnit.csproj ├── FibonacciWithXUnit.sln ├── Startup.cs ├── bin │ └── Debug │ │ └── netcoreapp2.1 │ │ ├── FibonacciWithXUnit.deps.json │ │ ├── FibonacciWithXUnit.dll │ │ ├── FibonacciWithXUnit.pdb │ │ ├── FibonacciWithXUnit.runtimeconfig.dev.json │ │ └── FibonacciWithXUnit.runtimeconfig.json └── obj │ ├── Debug │ └── netcoreapp2.1 │ │ ├── FibonacciWithXUnit.AssemblyInfo.cs │ │ ├── FibonacciWithXUnit.AssemblyInfoInputs.cache │ │ ├── FibonacciWithXUnit.assets.cache │ │ ├── FibonacciWithXUnit.csproj.CoreCompileInputs.cache │ │ ├── FibonacciWithXUnit.csproj.FileListAbsolute.txt │ │ ├── FibonacciWithXUnit.csprojAssemblyReference.cache │ │ ├── FibonacciWithXUnit.dll │ │ └── FibonacciWithXUnit.pdb │ ├── FibonacciWithXUnit.csproj.nuget.cache │ ├── FibonacciWithXUnit.csproj.nuget.dgspec.json │ ├── FibonacciWithXUnit.csproj.nuget.g.props │ ├── FibonacciWithXUnit.csproj.nuget.g.targets │ └── project.assets.json ├── InfoFootballers ├── InfoFootballers.sln └── InfoFootballers │ ├── App.config │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── InfoFootballers.csproj │ ├── InfoFootballersPro.cs │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings │ ├── VitoshAcademyComDataSet.Designer.cs │ ├── VitoshAcademyComDataSet.xsc │ ├── VitoshAcademyComDataSet.xsd │ ├── VitoshAcademyComDataSet.xss │ ├── bin │ └── Debug │ │ ├── InfoFootballers.exe │ │ ├── InfoFootballers.exe.config │ │ ├── InfoFootballers.pdb │ │ ├── InfoFootballers.vshost.exe │ │ ├── InfoFootballers.vshost.exe.config │ │ └── InfoFootballers.vshost.exe.manifest │ ├── code.sql │ └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── InfoFootballers.Form1.resources │ ├── InfoFootballers.Properties.Resources.resources │ ├── InfoFootballers.csproj.FileListAbsolute.txt │ ├── InfoFootballers.csproj.GenerateResource.Cache │ ├── InfoFootballers.csprojResolveAssemblyReference.cache │ ├── InfoFootballers.exe │ ├── InfoFootballers.pdb │ └── TempPE │ └── VitoshAcademyComDataSet.Designer.cs.dll ├── IntSense ├── Demo.cs ├── IIntellisenseDemo.cs ├── IntelliSense01.png ├── IntelliSense02.png └── vba_code.vb ├── Kruskal Algorithm ├── Kruskal.Tests │ ├── Kruskal.Tests.csproj │ ├── KruskalTests.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── bin │ │ └── Debug │ │ │ ├── Kruskal.Tests.dll │ │ │ ├── Kruskal.Tests.pdb │ │ │ ├── Kurskal.exe │ │ │ ├── Kurskal.pdb │ │ │ └── Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll │ └── obj │ │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── Kruskal.Tests.csproj.FileListAbsolute.txt │ │ ├── Kruskal.Tests.csprojResolveAssemblyReference.cache │ │ ├── Kruskal.Tests.dll │ │ └── Kruskal.Tests.pdb └── Kurskal │ ├── App.config │ ├── Edge.cs │ ├── KruskalAlgorithm.cs │ ├── KruskalMain.cs │ ├── Kurskal.csproj │ ├── Properties │ └── AssemblyInfo.cs │ ├── bin │ └── Debug │ │ ├── Kurskal.exe │ │ ├── Kurskal.exe.config │ │ ├── Kurskal.pdb │ │ ├── Kurskal.vshost.exe │ │ ├── Kurskal.vshost.exe.config │ │ └── Kurskal.vshost.exe.manifest │ └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── Kurskal.csproj.FileListAbsolute.txt │ ├── Kurskal.csprojResolveAssemblyReference.cache │ ├── Kurskal.exe │ └── Kurskal.pdb ├── LongestPalindromicAlgorithm.cs ├── LoopThroughFiles.cs ├── MySolution.cs ├── Polymorphism ├── AbstractQuick │ ├── AbstractQuick.csproj │ ├── App.config │ ├── Employee.cs │ ├── IDeveloper.cs │ ├── IPracticant.cs │ ├── IWorker.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Startup.cs │ ├── bin │ │ └── Debug │ │ │ ├── AbstractQuick.exe │ │ │ ├── AbstractQuick.exe.config │ │ │ ├── AbstractQuick.pdb │ │ │ ├── AbstractQuick.vshost.exe │ │ │ └── AbstractQuick.vshost.exe.config │ └── obj │ │ ├── Debug │ │ ├── AbstractQuick.csproj.FileListAbsolute.txt │ │ ├── AbstractQuick.csprojResolveAssemblyReference.cache │ │ ├── AbstractQuick.exe │ │ ├── AbstractQuick.pdb │ │ ├── CoreCompileInputs.cache │ │ └── DesignTimeResolveAssemblyReferencesInput.cache │ │ └── Release │ │ └── CoreCompileInputs.cache ├── PolyShapes │ ├── App.config │ ├── PolyShapes.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Shape.cs │ ├── bin │ │ └── Debug │ │ │ ├── PolyShapes.vshost.exe │ │ │ └── PolyShapes.vshost.exe.config │ └── obj │ │ ├── Debug │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── PolyShapes.csproj.FileListAbsolute.txt │ │ └── PolyShapes.csprojResolveAssemblyReference.cache │ │ └── Release │ │ └── CoreCompileInputs.cache ├── Polymorphism.sln ├── Polymorphism │ ├── Actor.cs │ ├── App.config │ ├── IMoneyMaker.cs │ ├── Polymorphism.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Startup.cs │ ├── Student.cs │ ├── bin │ │ └── Debug │ │ │ ├── Polymorphism.exe │ │ │ ├── Polymorphism.exe.config │ │ │ ├── Polymorphism.pdb │ │ │ ├── Polymorphism.vshost.exe │ │ │ ├── Polymorphism.vshost.exe.config │ │ │ └── Polymorphism.vshost.exe.manifest │ └── obj │ │ ├── Debug │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── Polymorphism.csproj.FileListAbsolute.txt │ │ ├── Polymorphism.csprojResolveAssemblyReference.cache │ │ ├── Polymorphism.exe │ │ └── Polymorphism.pdb │ │ └── Release │ │ └── CoreCompileInputs.cache ├── VehiclesApplication │ ├── App.config │ ├── App.zip │ ├── Auto.cs │ ├── Car.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Startup.cs │ ├── Truck.cs │ ├── VehiclesApplication.csproj │ ├── bin │ │ └── Debug │ │ │ ├── VehiclesApplication.exe │ │ │ ├── VehiclesApplication.exe.config │ │ │ ├── VehiclesApplication.pdb │ │ │ ├── VehiclesApplication.vshost.exe │ │ │ ├── VehiclesApplication.vshost.exe.config │ │ │ └── VehiclesApplication.vshost.exe.manifest │ └── obj │ │ ├── Debug │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── VehiclesApplication.csproj.FileListAbsolute.txt │ │ ├── VehiclesApplication.csprojResolveAssemblyReference.cache │ │ ├── VehiclesApplication.exe │ │ └── VehiclesApplication.pdb │ │ └── Release │ │ └── CoreCompileInputs.cache └── VehiclesApplication2 │ ├── App.config │ ├── Models │ ├── Car.cs │ ├── Truck.cs │ └── Vehicle.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Startup.cs │ ├── VehiclesApplication2.csproj │ ├── bin │ └── Debug │ │ ├── VehiclesApplication2.exe │ │ ├── VehiclesApplication2.exe.config │ │ └── VehiclesApplication2.pdb │ └── obj │ ├── Debug │ ├── CoreCompileInputs.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── VehiclesApplication2.csproj.FileListAbsolute.txt │ ├── VehiclesApplication2.csprojResolveAssemblyReference.cache │ ├── VehiclesApplication2.exe │ └── VehiclesApplication2.pdb │ └── Release │ └── CoreCompileInputs.cache ├── PrintOneLineDictionary.cs ├── QueensDrama.cs ├── README.md ├── ReadAndSort.cs ├── ReadFromExcelToRange.cs ├── SomeDbProject ├── DropDbQuery.sql ├── ReadMe.md ├── SomeDbProject.sln ├── SomeDbProject │ ├── App.config │ ├── Car.cs │ ├── Company.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SomeDbContext.cs │ ├── SomeDbProject.csproj │ ├── StartUp.cs │ ├── bin │ │ └── Debug │ │ │ ├── EntityFramework.SqlServer.dll │ │ │ ├── EntityFramework.SqlServer.xml │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ ├── SomeDbProject.exe │ │ │ ├── SomeDbProject.exe.config │ │ │ └── SomeDbProject.pdb │ ├── obj │ │ └── Debug │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── SomeDbProject.csproj.CoreCompileInputs.cache │ │ │ ├── SomeDbProject.csproj.FileListAbsolute.txt │ │ │ ├── SomeDbProject.csprojAssemblyReference.cache │ │ │ ├── SomeDbProject.exe │ │ │ └── SomeDbProject.pdb │ └── packages.config └── packages │ └── EntityFramework.6.2.0 │ ├── EntityFramework.6.2.0.nupkg │ ├── content │ └── net40 │ │ ├── App.config.transform │ │ └── Web.config.transform │ ├── lib │ ├── net40 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── net45 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── tools │ ├── EntityFramework.PowerShell.Utility.dll │ ├── EntityFramework.PowerShell.dll │ ├── EntityFramework.psd1 │ ├── EntityFramework.psm1 │ ├── about_EntityFramework.help.txt │ ├── init.ps1 │ ├── install.ps1 │ └── migrate.exe ├── StoreData ├── App.config ├── Customer.cs ├── Migrations │ ├── 201705241059067_InitialCreate.Designer.cs │ ├── 201705241059067_InitialCreate.cs │ ├── 201705241059067_InitialCreate.resx │ ├── 201705241334258_Version1.Designer.cs │ ├── 201705241334258_Version1.cs │ ├── 201705241334258_Version1.resx │ ├── 201705241335297_Version2.Designer.cs │ ├── 201705241335297_Version2.cs │ ├── 201705241335297_Version2.resx │ └── Configuration.cs ├── Product.cs ├── Properties │ └── AssemblyInfo.cs ├── Readme.md ├── Sale.cs ├── SalesContext.cs ├── Seed.cs ├── Startup.cs ├── StoreData.csproj ├── StoreData.sln ├── StoreLocation.cs ├── obj │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── StoreData.csproj.FileListAbsolute.txt │ │ ├── StoreData.csprojResolveAssemblyReference.cache │ │ ├── StoreData.exe │ │ └── StoreData.pdb └── packages.config ├── ThreadExample001 ├── ThreadsExample.cs └── Writer.cs ├── ValidateTime.cs ├── VanyaAndLabel.cs ├── Vasiliy.cs ├── VasyaAndStrokes.cs ├── WindowFormExample ├── NewWindowForm.sln ├── NewWindowForm │ ├── App.config │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── NewWindowForm.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── bin │ │ └── Debug │ │ │ ├── NewWindowForm.exe │ │ │ ├── NewWindowForm.exe.config │ │ │ ├── NewWindowForm.pdb │ │ │ ├── NewWindowForm.vshost.exe │ │ │ ├── NewWindowForm.vshost.exe.config │ │ │ └── NewWindowForm.vshost.exe.manifest │ └── obj │ │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── NewWindowForm.Form1.resources │ │ ├── NewWindowForm.Properties.Resources.resources │ │ ├── NewWindowForm.csproj.FileListAbsolute.txt │ │ ├── NewWindowForm.csproj.GenerateResource.Cache │ │ ├── NewWindowForm.csproj.ResolveComReference.cache │ │ ├── NewWindowForm.csprojResolveAssemblyReference.cache │ │ ├── NewWindowForm.exe │ │ └── NewWindowForm.pdb └── ReadMe.MD ├── ca120517 ├── App.config ├── Models │ ├── Address.cs │ ├── Department.cs │ ├── Employee.cs │ ├── Project.cs │ ├── Town.cs │ └── sysdiagram.cs ├── Properties │ └── AssemblyInfo.cs ├── SoftUniDb.cs ├── Startup11-14.cs ├── Startup14.cs ├── Startups11To13.cs ├── Startups3To10.cs ├── bin │ └── Debug │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ ├── EntityFramework.xml │ │ ├── ca120517.exe │ │ ├── ca120517.exe.config │ │ ├── ca120517.pdb │ │ ├── ca120517.vshost.exe │ │ ├── ca120517.vshost.exe.config │ │ └── ca120517.vshost.exe.manifest ├── ca120517.csproj ├── ca120517.sln ├── obj │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── ca120517.csproj.FileListAbsolute.txt │ │ ├── ca120517.csprojResolveAssemblyReference.cache │ │ ├── ca120517.exe │ │ └── ca120517.pdb ├── packages.config └── packages │ └── EntityFramework.6.1.3 │ ├── Content │ ├── App.config.transform │ └── Web.config.transform │ ├── EntityFramework.6.1.3.nupkg │ ├── lib │ ├── net40 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── net45 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── tools │ ├── EntityFramework.PowerShell.Utility.dll │ ├── EntityFramework.PowerShell.dll │ ├── EntityFramework.psd1 │ ├── EntityFramework.psm1 │ ├── about_EntityFramework.help.txt │ ├── init.ps1 │ ├── install.ps1 │ └── migrate.exe ├── cf_Checking_the_Calendar.cs ├── delegate_example.cs ├── linq_ignore_lists.cs └── linq_test ├── App.config ├── Company.cs ├── LinqApp.cs ├── Properties └── AssemblyInfo.cs ├── bin └── Debug │ ├── linq_test.exe │ ├── linq_test.exe.config │ ├── linq_test.pdb │ ├── linq_test.vshost.exe │ └── linq_test.vshost.exe.config ├── linq_test.csproj └── obj └── Debug ├── DesignTimeResolveAssemblyReferencesInput.cache ├── linq_test.csproj.FileListAbsolute.txt ├── linq_test.csprojResolveAssemblyReference.cache ├── linq_test.exe └── linq_test.pdb /AbstractExample/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AbstractExample/BigTruck.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AbstractExample 4 | { 5 | class BigTruck : Car 6 | { 7 | public BigTruck(int yearOfProduction) : base(yearOfProduction) 8 | { 9 | } 10 | 11 | public override string StartEngine() 12 | { 13 | return "Big truck starts the engine."; 14 | } 15 | 16 | public override string StopEngine() 17 | { 18 | return "Big truck stops the engine."; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /AbstractExample/Car.cs: -------------------------------------------------------------------------------- 1 | namespace AbstractExample 2 | { 3 | public abstract class Car 4 | { 5 | public int year { get; set; } 6 | protected Car(int yearOfProduction) 7 | { 8 | this.year = yearOfProduction; 9 | } 10 | public string ProducedIn() 11 | { 12 | return string.Format("Produced in {0}.",this.year); 13 | } 14 | public abstract string StartEngine(); 15 | public abstract string StopEngine(); 16 | public string YearsNeededToDrive() 17 | { 18 | return "You should be 18 years to drive it!"; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /AbstractExample/SmallCar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractExample 8 | { 9 | class SmallCar : Car 10 | { 11 | public SmallCar(int yearOfProduction) : base(yearOfProduction) 12 | { 13 | } 14 | 15 | public override string StartEngine() 16 | { 17 | return "Small car starts the engine."; 18 | } 19 | 20 | public override string StopEngine() 21 | { 22 | return "Small car stops the engine."; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /AbstractExample/Startup.cs: -------------------------------------------------------------------------------- 1 | namespace AbstractExample 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | class Startup 7 | { 8 | static void Main() 9 | { 10 | List myCars = new List(); 11 | myCars.Add(new BigTruck(2011)); 12 | myCars.Add(new SmallCar(2010)); 13 | 14 | foreach (Car car in myCars) 15 | { 16 | Console.WriteLine(car.StartEngine()); 17 | Console.WriteLine(car.YearsNeededToDrive()); 18 | Console.WriteLine(car.ProducedIn()); 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/bin/Debug/AbstractExample.exe -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/bin/Debug/AbstractExample.pdb -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/bin/Debug/AbstractExample.vshost.exe -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AbstractExample/bin/Debug/AbstractExample.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /AbstractExample/obj/Debug/AbstractExample.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\bin\Debug\AbstractExample.exe.config 2 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\bin\Debug\AbstractExample.exe 3 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\bin\Debug\AbstractExample.pdb 4 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\obj\Debug\AbstractExample.csprojResolveAssemblyReference.cache 5 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\obj\Debug\AbstractExample.exe 6 | c:\users\gropc\documents\visual studio 2015\Projects\AbstractExample\AbstractExample\obj\Debug\AbstractExample.pdb 7 | -------------------------------------------------------------------------------- /AbstractExample/obj/Debug/AbstractExample.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/obj/Debug/AbstractExample.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /AbstractExample/obj/Debug/AbstractExample.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/obj/Debug/AbstractExample.exe -------------------------------------------------------------------------------- /AbstractExample/obj/Debug/AbstractExample.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/obj/Debug/AbstractExample.pdb -------------------------------------------------------------------------------- /AbstractExample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/AbstractExample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Bear and Prime_2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | class CompositeAndPrime 5 | { 6 | static void Main() 7 | { 8 | List l_prime = new List { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 4, 9, 25, 49 }; 9 | int i_sum = 0; 10 | 11 | for (int i = 0; i < l_prime.Count; i++) 12 | { 13 | Console.WriteLine(l_prime[i]); 14 | Console.Out.Flush(); 15 | string reader1 = Console.ReadLine(); 16 | if (reader1.Equals("yes")) 17 | { 18 | i_sum++; 19 | if (i_sum >= 2) 20 | { 21 | Console.WriteLine("composite"); 22 | Console.Out.Flush(); 23 | return; 24 | } 25 | } 26 | } 27 | Console.WriteLine("prime"); 28 | Console.Out.Flush(); 29 | return; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /BlackConsole/BlackConsole.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlackConsole", "BlackConsole\BlackConsole.csproj", "{8F9A5217-7278-4CE8-989D-5E59660010A6}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {8F9A5217-7278-4CE8-989D-5E59660010A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {8F9A5217-7278-4CE8-989D-5E59660010A6}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {8F9A5217-7278-4CE8-989D-5E59660010A6}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {8F9A5217-7278-4CE8-989D-5E59660010A6}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/ConsoleStart.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace BlackConsole 8 | { 9 | public class ConsoleStart 10 | { 11 | public string TestString(string strName) 12 | { 13 | return "class ConsoleStart " + strName; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/ConsoleStart2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace BlackConsole 8 | { 9 | public class ConsoleStart2 10 | { 11 | public int number = 42; 12 | 13 | public string TestString(string strName) 14 | { 15 | return "class ConsoleStart2" + strName; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release01/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release01/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release01/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release01/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release02/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release02/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release02/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release02/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release02/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release02/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release03/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release03/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release03/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release03/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release03/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release03/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release04/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release04/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release04/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release04/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release04/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release04/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release05/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release05/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release05/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release05/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release05/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release05/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release06/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release06/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release06/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release06/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release06/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release06/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release07/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release07/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release07/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release07/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release07/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release07/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release08/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release08/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release08/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release08/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release08/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release08/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release09/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release09/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release09/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release09/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release09/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release09/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release10/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release10/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release10/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release10/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/bin/Release10/BlackConsole.tlb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/bin/Release10/BlackConsole.tlb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/obj/BlackConsole.csproj.UnmanagedRegistration.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/obj/BlackConsole.csproj.UnmanagedRegistration.cache -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/obj/Debug/BlackConsole.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/obj/Debug/BlackConsole.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/obj/Debug/BlackConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/obj/Debug/BlackConsole.dll -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/obj/Debug/BlackConsole.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/obj/Debug/BlackConsole.pdb -------------------------------------------------------------------------------- /BlackConsole/BlackConsole/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/BlackConsole/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /BlackConsole/Info/MyInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | class MyInfo 8 | { 9 | public int number = 50; 10 | 11 | public string TestInfo(string strName) 12 | { 13 | return "Test Info " + strName; 14 | } 15 | 16 | public int Number 17 | { 18 | get 19 | { 20 | return number; 21 | } 22 | set 23 | { 24 | number = value * 31; 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /BlackConsole/Info/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Info")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Info")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("90bbfcce-0539-453d-82b8-beade084a826")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /BlackConsole/Info/bin/Debug/Info.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/bin/Debug/Info.dll -------------------------------------------------------------------------------- /BlackConsole/Info/bin/Debug/Info.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/bin/Debug/Info.pdb -------------------------------------------------------------------------------- /BlackConsole/Info/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /BlackConsole/Info/obj/Debug/Info.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\v.doynov\Documents\Visual Studio 2015\Projects\BlackConsole\Info\bin\Debug\Info.dll 2 | C:\Users\v.doynov\Documents\Visual Studio 2015\Projects\BlackConsole\Info\bin\Debug\Info.pdb 3 | C:\Users\v.doynov\Documents\Visual Studio 2015\Projects\BlackConsole\Info\obj\Debug\Info.csprojResolveAssemblyReference.cache 4 | C:\Users\v.doynov\Documents\Visual Studio 2015\Projects\BlackConsole\Info\obj\Debug\Info.dll 5 | C:\Users\v.doynov\Documents\Visual Studio 2015\Projects\BlackConsole\Info\obj\Debug\Info.pdb 6 | -------------------------------------------------------------------------------- /BlackConsole/Info/obj/Debug/Info.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/obj/Debug/Info.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /BlackConsole/Info/obj/Debug/Info.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/obj/Debug/Info.dll -------------------------------------------------------------------------------- /BlackConsole/Info/obj/Debug/Info.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/BlackConsole/Info/obj/Debug/Info.pdb -------------------------------------------------------------------------------- /Build a .Net library/ShowCase/ShowCase.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Build a .Net library/ShowCase/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UtilityLibraries; 3 | 4 | class Startup 5 | { 6 | static void Main() 7 | { 8 | int row = 0; 9 | 10 | do 11 | { 12 | if (row == 0 || row >= 25) 13 | { 14 | ResetConsole(); 15 | } 16 | 17 | string input = Console.ReadLine(); 18 | if (String.IsNullOrEmpty(input)) break; 19 | Console.WriteLine($"Input: {input} {"Begins with uppercase? ",30}: " + 20 | $"{(input.StartsWithUpper() ? "Yes" : "No")}\n"); 21 | row += 3; 22 | } while (true); 23 | return; 24 | 25 | 26 | void ResetConsole() 27 | { 28 | if (row > 0) 29 | { 30 | Console.WriteLine("Press any key to continue..."); 31 | Console.ReadKey(); 32 | } 33 | Console.Clear(); 34 | Console.WriteLine("\nPress only to exit; otherwise, enter a string and press :\n"); 35 | row = 3; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Build a .Net library/StringLibrary/StringLibrary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace UtilityLibraries 3 | { 4 | public static class StringLibrary 5 | { 6 | public static bool StartsWithUpper(this String str) 7 | { 8 | if (String.IsNullOrWhiteSpace(str)) 9 | { 10 | return false; 11 | } 12 | 13 | Char ch = str[0]; 14 | return Char.IsUpper(ch); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Build a .Net library/StringLibrary/StringLibrary.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Build a .Net library/StringLibraryTest/StringLibraryTest.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.0 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /CPP/Fib3/Module.vb: -------------------------------------------------------------------------------- 1 | Option Explicit 2 | Declare Function fib3 Lib _ 3 | "C:\~\ject3.dll" _ 4 | (ByRef x As Long) As Long 5 | 6 | Public Sub TestMe() 7 | 8 | Dim i As Long 9 | 10 | For i = 0 To 30 11 | Debug.Print fib3(i) 12 | Next i 13 | 14 | End Sub 15 | -------------------------------------------------------------------------------- /CPP/Fib3/Source001.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | 5 | int __stdcall fib3(int & x) 6 | { 7 | int k = 0; 8 | int p = 0; 9 | 10 | if (x == 0) 11 | return 0; 12 | 13 | if (x == 1) 14 | return 1; 15 | 16 | k = x-1; 17 | p = x - 2; 18 | return fib3(k) + fib3(p); 19 | 20 | } -------------------------------------------------------------------------------- /CPP/Fib3/Source001.def: -------------------------------------------------------------------------------- 1 | LIBRARY "VitoshAcademy" 2 | EXPORTS 3 | fib3 -------------------------------------------------------------------------------- /CPP/Link For Download - Codeblocks.txt: -------------------------------------------------------------------------------- 1 | http://www.fosshub.com/Code-Blocks.html/codeblocks-16.01mingw-setup.exe -------------------------------------------------------------------------------- /CodeForces/030716_code_forces01.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | class test_code_forces01 7 | { 8 | static void Main() 9 | { 10 | 11 | string[] input = Console.ReadLine().Split(); 12 | int enemies_count = int.Parse(input[0]); 13 | int days_count = int.Parse(input[1]); 14 | List results = new List(); 15 | 16 | string number_max = CheckNumber(enemies_count); 17 | string current_string = ""; 18 | int biggest_sequence = 0; 19 | 20 | for (int i = 0; i < days_count; i++) 21 | { 22 | current_string = Console.ReadLine(); 23 | if (current_string.Equals(number_max,StringComparison.Ordinal)) 24 | { 25 | biggest_sequence = 0; 26 | } 27 | else 28 | { 29 | biggest_sequence++; 30 | } 31 | results.Add(biggest_sequence); 32 | } 33 | Console.WriteLine(results.Max()); 34 | } 35 | 36 | static string CheckNumber(int enemies_count) 37 | { 38 | string result = ""; 39 | for (int i = 0; i < enemies_count; i++) 40 | { 41 | result += "1"; 42 | } 43 | return result; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /CodeForces/030716_code_forces02.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | 8 | class test_code_forces02 9 | { 10 | static void Main() 11 | { 12 | string input = Console.ReadLine(); 13 | Console.WriteLine(input+Reverse(input)); 14 | } 15 | 16 | public static string Reverse(string s) 17 | { 18 | char[] charArray = s.ToCharArray(); 19 | Array.Reverse(charArray); 20 | return new string(charArray); 21 | } 22 | 23 | } 24 | 25 | -------------------------------------------------------------------------------- /CodeForces/Prepared.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | class Startup 8 | { 9 | static void Main() 10 | { 11 | } 12 | public static List ReadLineAndParseToList() 13 | { 14 | return Console.ReadLine().Split().Select(int.Parse).ToList(); 15 | } 16 | 17 | static int[] ReadLineAndParseToArray() 18 | { 19 | return Console.ReadLine().Split().Select(int.Parse).ToArray(); 20 | } 21 | 22 | public static int[,] TransposeMaxtrix(int[,] matrix) 23 | { 24 | int w = matrix.GetLength(0); 25 | int h = matrix.GetLength(1); 26 | 27 | int[,] result = new int[h, w]; 28 | 29 | for (int i = 0; i < w; i++) 30 | { 31 | for (int j = 0; j < h; j++) 32 | { 33 | result[j, i] = matrix[i, j]; 34 | } 35 | } 36 | return result; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /CodeForces/cf378_2.cs: -------------------------------------------------------------------------------- 1 | //http://codeforces.com/contest/733/problem/B 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | 7 | class cf378_2 8 | { 9 | static void Main() 10 | { 11 | string str_read = ""; 12 | int int_better_beauty = -1; 13 | int int_current_beauty; 14 | int int_row = 0; 15 | int int_total = int.Parse(Console.ReadLine()); 16 | 17 | int int_total_l = 0; 18 | int int_total_r = 0; 19 | 20 | List lst_left = new List(); 21 | List lst_right = new List(); 22 | 23 | for (int i = 0; i < int_total; i++) 24 | { 25 | str_read = Console.ReadLine(); 26 | lst_left.Add(int.Parse(str_read.Split()[0])); 27 | lst_right.Add(int.Parse(str_read.Split()[1])); 28 | int_total_l += int.Parse(str_read.Split()[0]); 29 | int_total_r += int.Parse(str_read.Split()[1]); 30 | } 31 | 32 | int int_initial_beauty = Math.Abs(int_total_l-int_total_r); 33 | for (int i = 0; i < int_total; i++) 34 | { 35 | int_current_beauty = Math.Abs(int_total_l - 2 * lst_left[i] + 2 * lst_right[i] - int_total_r); 36 | if ((int_current_beauty>int_better_beauty) && (int_current_beauty > int_initial_beauty)) 37 | { 38 | int_better_beauty = int_current_beauty; 39 | int_row = i+1; 40 | } 41 | } 42 | Console.WriteLine(int_row); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /CodeForces/cf383_1.cs: -------------------------------------------------------------------------------- 1 | //http://codeforces.com/contest/742/problem/A?locale=en 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | 10 | class round383_1 11 | { 12 | static void Main() 13 | { 14 | int n = int.Parse(Console.ReadLine()); 15 | int result=-1; 16 | 17 | if (n == 0) 18 | { 19 | result = 1; 20 | }else { 21 | switch (n % 4) 22 | { 23 | case 0: 24 | result = 6; 25 | break; 26 | case 1: 27 | result = 8; 28 | break; 29 | case 2: 30 | result = 4; 31 | break; 32 | case 3: 33 | result = 2; 34 | break; 35 | } 36 | } 37 | Console.WriteLine(result); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /CodeForces/cf762_1.cs: -------------------------------------------------------------------------------- 1 | //http://codeforces.com/problemset/problem/762/A?locale=en 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | class cf1 10 | { 11 | static void Main() 12 | { 13 | string strInfo01 = Console.ReadLine(); 14 | 15 | long lngNumber = long.Parse(strInfo01.Split()[0]); 16 | long lngPosition = long.Parse(strInfo01.Split()[1]); 17 | long lngSquare = (long)Math.Sqrt(lngNumber); 18 | 19 | List lstResults = new List(); 20 | 21 | for (long i = 1; i <= lngSquare; i++) 22 | { 23 | if (lngNumber % i == 0) 24 | { 25 | lstResults.Add(i); 26 | if (i != lngNumber/i) 27 | { 28 | lstResults.Add(lngNumber / i); 29 | } 30 | } 31 | } 32 | 33 | lstResults.Sort(); 34 | 35 | if (lstResults.Count< lngPosition) 36 | { 37 | Console.WriteLine(-1); 38 | } 39 | else 40 | { 41 | Console.WriteLine(lstResults [(int)lngPosition-1]); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /CodeForces/cf_449_2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Numerics; 7 | 8 | class Startup 9 | { 10 | static void Main() 11 | { 12 | List inputList = ReadLineAndParseToList(); 13 | BigInteger k = inputList[0]; 14 | BigInteger p = inputList[1]; 15 | BigInteger sumOfK = 0; 16 | 17 | for (BigInteger i = 1; i <= k; i++) 18 | { 19 | sumOfK += ReverseAndMake(i); 20 | } 21 | 22 | Console.WriteLine(sumOfK%p); 23 | } 24 | 25 | public static BigInteger ReverseAndMake(BigInteger intS) 26 | { 27 | string s = intS.ToString(); 28 | char[] charArray = s.ToCharArray(); 29 | Array.Reverse(charArray); 30 | return BigInteger.Parse(s + new string(charArray)); 31 | } 32 | 33 | public static List ReadLineAndParseToList() 34 | { 35 | return Console.ReadLine().Split().Select(BigInteger.Parse).ToList(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /ExcelExtractor/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ExcelExtractor/ExcelExtractor.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ShowAllFiles 5 | 6 | -------------------------------------------------------------------------------- /ExcelExtractor/ExcelExtractor.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelExtractor", "ExcelExtractor.csproj", "{F97F20C3-F9C3-4BF1-A55E-91DF9007BAB3}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {F97F20C3-F9C3-4BF1-A55E-91DF9007BAB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {F97F20C3-F9C3-4BF1-A55E-91DF9007BAB3}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {F97F20C3-F9C3-4BF1-A55E-91DF9007BAB3}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {F97F20C3-F9C3-4BF1-A55E-91DF9007BAB3}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ExcelExtractor/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ExcelExtractor.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ExcelExtractor/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ExcelExtractor/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace ExcelExtractor 8 | { 9 | static class Startup 10 | { 11 | [STAThread] 12 | static void Main() 13 | { 14 | Application.EnableVisualStyles(); 15 | Application.SetCompatibleTextRenderingDefault(false); 16 | Application.Run(new Form1()); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26403.7 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExcelInterop", "ExcelInterop\ExcelInterop.csproj", "{2D516751-E4FF-4D3F-B8C8-0989C410708A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {2D516751-E4FF-4D3F-B8C8-0989C410708A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {2D516751-E4FF-4D3F-B8C8-0989C410708A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {2D516751-E4FF-4D3F-B8C8-0989C410708A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {2D516751-E4FF-4D3F-B8C8-0989C410708A}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/bin/Debug/ExcelInterop.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/bin/Debug/ExcelInterop.exe -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/bin/Debug/ExcelInterop.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/bin/Debug/ExcelInterop.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/bin/Debug/ExcelInterop.pdb -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 21b08ad3260f3630474f9c4c19056520d72af294 2 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\bin\Debug\ExcelInterop.exe.config 2 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\bin\Debug\ExcelInterop.exe 3 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\bin\Debug\ExcelInterop.pdb 4 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\obj\Debug\ExcelInterop.csprojResolveAssemblyReference.cache 5 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\obj\Debug\ExcelInterop.csproj.ResolveComReference.cache 6 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\obj\Debug\ExcelInterop.exe 7 | c:\users\gropc\documents\visual studio 2017\Projects\ExcelInterop\ExcelInterop\obj\Debug\ExcelInterop.pdb 8 | -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.csproj.ResolveComReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.csproj.ResolveComReference.cache -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.exe -------------------------------------------------------------------------------- /ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ExcelInterop/ExcelInterop/obj/Debug/ExcelInterop.pdb -------------------------------------------------------------------------------- /FatSeparatorSplit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class StartUp 4 | { 5 | static void Main() 6 | { 7 | string sample = "*AAAaa*SEPARATOR*zzZZZ*"; 8 | string first = sample.Substring(0, sample.IndexOf("SEPARATOR")); 9 | string second = sample.Substring(sample.IndexOf("SEPARATOR") + "SEPARATOR".Length); 10 | Console.WriteLine("{0} - {1}",first,second); 11 | 12 | sample = "111SEPARATOR222SEPARATOR333SEPARATOR333SEPARATOR999"; 13 | first = sample.Split("SEPARATOR".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)[0]; 14 | second = sample.Split("SEPARATOR".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)[1]; 15 | string lastOne = sample.Split("SEPARATOR".ToCharArray(), StringSplitOptions.RemoveEmptyEntries) 16 | [sample.Split("SEPARATOR".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Length-1]; 17 | Console.WriteLine("{0} - {1} - {2}", first, second, lastOne); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Fibonacci.Tests/bin/Debug/Fibonacci.Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/bin/Debug/Fibonacci.Tests.dll -------------------------------------------------------------------------------- /Fibonacci.Tests/bin/Debug/Fibonacci.Tests.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/bin/Debug/Fibonacci.Tests.pdb -------------------------------------------------------------------------------- /Fibonacci.Tests/bin/Debug/Fibonacci.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/bin/Debug/Fibonacci.exe -------------------------------------------------------------------------------- /Fibonacci.Tests/bin/Debug/Fibonacci.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/bin/Debug/Fibonacci.pdb -------------------------------------------------------------------------------- /Fibonacci.Tests/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll -------------------------------------------------------------------------------- /Fibonacci.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Fibonacci.Tests/obj/Debug/Fibonacci.Tests.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\obj\Debug\Fibonacci.Tests.csprojResolveAssemblyReference.cache 2 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\bin\Debug\Fibonacci.Tests.dll 3 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\bin\Debug\Fibonacci.Tests.pdb 4 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\bin\Debug\Fibonacci.exe 5 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\bin\Debug\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 6 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\bin\Debug\Fibonacci.pdb 7 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\obj\Debug\Fibonacci.Tests.dll 8 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci.Tests\obj\Debug\Fibonacci.Tests.pdb 9 | -------------------------------------------------------------------------------- /Fibonacci.Tests/obj/Debug/Fibonacci.Tests.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/obj/Debug/Fibonacci.Tests.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Fibonacci.Tests/obj/Debug/Fibonacci.Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/obj/Debug/Fibonacci.Tests.dll -------------------------------------------------------------------------------- /Fibonacci.Tests/obj/Debug/Fibonacci.Tests.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci.Tests/obj/Debug/Fibonacci.Tests.pdb -------------------------------------------------------------------------------- /Fibonacci/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Fibonacci/Fibonacci.playlist: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Fibonacci/FibonacciChecks.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Fibonacci 3 | { 4 | public class FibonacciChecks 5 | { 6 | public static long[] my_memo; 7 | public static DateTime my_time; 8 | public static long my_counter; 9 | 10 | public static void Main() 11 | { 12 | Console.WriteLine("Enter number between 2 and 1300 for Fibonacci calculation:"); 13 | long k = long.Parse(Console.ReadLine()); 14 | my_memo = new long[k + 1]; 15 | 16 | my_counter = 0; 17 | my_time = DateTime.Now; 18 | 19 | Console.WriteLine("\n{0}", FibWithMemo(k)); 20 | Console.WriteLine("Calculations {0}", my_counter); 21 | Console.WriteLine(DateTime.Now - my_time); 22 | } 23 | 24 | public static long FibWithMemo(long counter_inside, bool with_memo = true) 25 | { 26 | if (with_memo) 27 | { 28 | if (my_memo[counter_inside] != 0) return my_memo[counter_inside]; 29 | } 30 | 31 | my_counter++; 32 | 33 | if (counter_inside == 0) return 0; 34 | if (counter_inside == 1) return 1; 35 | my_memo[counter_inside] = FibWithMemo(counter_inside - 1, with_memo) + FibWithMemo(counter_inside - 2, with_memo); 36 | return my_memo[counter_inside]; 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Fibonacci/bin/Debug/Fibonacci.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/bin/Debug/Fibonacci.exe -------------------------------------------------------------------------------- /Fibonacci/bin/Debug/Fibonacci.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Fibonacci/bin/Debug/Fibonacci.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/bin/Debug/Fibonacci.pdb -------------------------------------------------------------------------------- /Fibonacci/bin/Debug/Fibonacci.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/bin/Debug/Fibonacci.vshost.exe -------------------------------------------------------------------------------- /Fibonacci/bin/Debug/Fibonacci.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Fibonacci/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Fibonacci/obj/Debug/Fibonacci.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\bin\Debug\Fibonacci.exe.config 2 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\bin\Debug\Fibonacci.exe 3 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\bin\Debug\Fibonacci.pdb 4 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\obj\Debug\Fibonacci.csprojResolveAssemblyReference.cache 5 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\obj\Debug\Fibonacci.exe 6 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\Fibonacci\obj\Debug\Fibonacci.pdb 7 | -------------------------------------------------------------------------------- /Fibonacci/obj/Debug/Fibonacci.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/obj/Debug/Fibonacci.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Fibonacci/obj/Debug/Fibonacci.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/obj/Debug/Fibonacci.exe -------------------------------------------------------------------------------- /Fibonacci/obj/Debug/Fibonacci.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Fibonacci/obj/Debug/Fibonacci.pdb -------------------------------------------------------------------------------- /FibonacciStuff.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class MaxSequenceOfEqualElements 4 | { 5 | public static int[] my_memo; 6 | 7 | static void Main() 8 | { 9 | int k = int.Parse(Console.ReadLine()); 10 | my_memo = new int[k + 2]; 11 | Console.WriteLine(FibWith(k)); 12 | } 13 | 14 | static int FibWith(int counter_inside) 15 | { 16 | if (my_memo[counter_inside] != 0) return my_memo[counter_inside]; 17 | if (counter_inside == 0) return 0; 18 | if (counter_inside == 1) return 1; 19 | my_memo[counter_inside] = FibWith(counter_inside - 1) + FibWith(counter_inside - 2); 20 | return my_memo[counter_inside]; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/Fibonacci.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace FibonacciWithXUnit 6 | { 7 | public class Fibonacci 8 | { 9 | public long Calculate(int position) 10 | { 11 | //if (position == 1) return 1; 12 | //if (position == 2) return 1; 13 | //return Calculate(position - 1) + Calculate(position - 2); 14 | 15 | if (position == 1 || position == 2) 16 | { 17 | return 1; 18 | } 19 | 20 | int fib1 = 1; 21 | int fib2 = 1; 22 | int result = -1; 23 | 24 | for (int i = 3; i <= position; i++) 25 | { 26 | result = fib1 + fib2; 27 | fib1 = fib2; 28 | fib2 = result; 29 | } 30 | 31 | return result; 32 | 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/FibonacciWithXUnit.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp2.1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace FibonacciWithXUnit 4 | { 5 | class Startup 6 | { 7 | static void Main() 8 | { 9 | Fibonacci fibonacci = new Fibonacci(); 10 | for (int i = 1; i < 30; i++) 11 | { 12 | Console.WriteLine(fibonacci.Calculate(i)); 13 | } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.dll -------------------------------------------------------------------------------- /FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.pdb -------------------------------------------------------------------------------- /FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\gropc\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\gropc\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /FibonacciWithXUnit/bin/Debug/netcoreapp2.1/FibonacciWithXUnit.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.1", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.1.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("FibonacciWithXUnit")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("FibonacciWithXUnit")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("FibonacciWithXUnit")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 88095cd32a4f9e6d0b64733e3381316ff9cb1c11 2 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.assets.cache -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 614465f6eb8b988dea58bf7857704dac6cdb9c25 2 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\bin\Debug\netcoreapp2.1\FibonacciWithXUnit.deps.json 2 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\bin\Debug\netcoreapp2.1\FibonacciWithXUnit.runtimeconfig.json 3 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\bin\Debug\netcoreapp2.1\FibonacciWithXUnit.runtimeconfig.dev.json 4 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\bin\Debug\netcoreapp2.1\FibonacciWithXUnit.dll 5 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.csproj.CoreCompileInputs.cache 6 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.AssemblyInfoInputs.cache 7 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.AssemblyInfo.cs 8 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\bin\Debug\netcoreapp2.1\FibonacciWithXUnit.pdb 9 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.csprojAssemblyReference.cache 10 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.dll 11 | C:\Users\gropc\Source\Repos\FibonacciWithXUnit\obj\Debug\netcoreapp2.1\FibonacciWithXUnit.pdb 12 | -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.dll -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/FibonacciWithXUnit/obj/Debug/netcoreapp2.1/FibonacciWithXUnit.pdb -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/FibonacciWithXUnit.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "TM/J1F7hZovQfT7qIu0qZlggYuFzVDY3EjLwyJNJ84UlMvnuSXZPJHTt1K53rHnUHAvOM5bXLCNZ6QEMnXgttA==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /FibonacciWithXUnit/obj/FibonacciWithXUnit.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfoFootballers", "InfoFootballers\InfoFootballers.csproj", "{3584B813-6380-467C-91DC-A78E0CAC427A}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {3584B813-6380-467C-91DC-A78E0CAC427A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {3584B813-6380-467C-91DC-A78E0CAC427A}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {3584B813-6380-467C-91DC-A78E0CAC427A}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {3584B813-6380-467C-91DC-A78E0CAC427A}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/InfoFootballersPro.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace InfoFootballers 8 | { 9 | static class InfoFootballersPro 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | <?xml version="1.0" encoding="utf-16"?> 7 | <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 8 | <ConnectionString>Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=VitoshAcademyCom;Integrated Security=True</ConnectionString> 9 | <ProviderName>System.Data.SqlClient</ProviderName> 10 | </SerializableConnectionString> 11 | Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=VitoshAcademyCom;Integrated Security=True 12 | 13 | 14 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/VitoshAcademyComDataSet.xsc: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/VitoshAcademyComDataSet.xss: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.exe -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.pdb -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.vshost.exe -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/bin/Debug/InfoFootballers.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/code.sql: -------------------------------------------------------------------------------- 1 | Use VitoshAcademyCom 2 | 3 | CREATE TABLE Footballers 4 | ( 5 | ID int IDENTITY(1,1) PRIMARY KEY, 6 | FirstName varchar(255) NOT NULL, 7 | LastName varchar(255), 8 | Club varchar(255), 9 | City varchar(255) 10 | ) 11 | 12 | INSERT INTO Footballers (FirstName,LastName,Club,City) VALUES 13 | ('Peter','The Keeper','NorthClub','Sofia'), 14 | ('Ivan','Mitov','EastClub','Plovdiv'), 15 | ('Stoyan','Mitkov','EastClub','Varna'), 16 | ('Vitosh','Doynov','EastClub','Sofia'), 17 | ('Pesho','Stoyanov','SouthClub','Varna'), 18 | ('Gosho','Kiriyakov','SouthClub','Sofia'), 19 | ('Haralampi','Iliev','SouthClub','Sofia'); -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.Form1.resources -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.Properties.Resources.resources -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\bin\Debug\InfoFootballers.exe.config 2 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\bin\Debug\InfoFootballers.exe 3 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\bin\Debug\InfoFootballers.pdb 4 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.Form1.resources 5 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.Properties.Resources.resources 6 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.csproj.GenerateResource.Cache 7 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.exe 8 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.pdb 9 | c:\users\gropc\documents\visual studio 2015\Projects\InfoFootballers\InfoFootballers\obj\Debug\InfoFootballers.csprojResolveAssemblyReference.cache 10 | -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.exe -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/InfoFootballers.pdb -------------------------------------------------------------------------------- /InfoFootballers/InfoFootballers/obj/Debug/TempPE/VitoshAcademyComDataSet.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/InfoFootballers/InfoFootballers/obj/Debug/TempPE/VitoshAcademyComDataSet.Designer.cs.dll -------------------------------------------------------------------------------- /IntSense/Demo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace IntDemo 5 | { 6 | [ClassInterface(ClassInterfaceType.None)] 7 | public class Demo : IIntellisenseDemo 8 | { 9 | public int numberBy2; 10 | public int numberBy3; 11 | 12 | public int NumberBy3 13 | { 14 | get 15 | { 16 | return numberBy3; 17 | } 18 | set 19 | { 20 | numberBy3 = value * 3; 21 | } 22 | 23 | } 24 | 25 | public int NumberBy2 26 | { 27 | get 28 | { 29 | return numberBy2; 30 | } 31 | set 32 | { 33 | numberBy2 = value * 2; 34 | } 35 | } 36 | public string TestString(string name) 37 | { 38 | return "Here comes " + name; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /IntSense/IIntellisenseDemo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace IntDemo 5 | { 6 | [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] 7 | 8 | public interface IIntellisenseDemo 9 | { 10 | int NumberBy3 { get; set; } 11 | int NumberBy2 { get; set; } 12 | string TestString(string name); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /IntSense/IntelliSense01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/IntSense/IntelliSense01.png -------------------------------------------------------------------------------- /IntSense/IntelliSense02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/IntSense/IntelliSense02.png -------------------------------------------------------------------------------- /IntSense/vba_code.vb: -------------------------------------------------------------------------------- 1 | Option Explicit 2 | 3 | Public Sub TestMe() 4 | 5 | Dim objI As New IntSense.Demo 6 | 7 | objI.NumberBy2 = 222 8 | Debug.Print objI.NumberBy2 9 | 10 | objI.NumberBy3 = 100 11 | Debug.Print objI.NumberBy3 12 | 13 | Debug.Print objI.TestString("vit!") 14 | 15 | End Sub 16 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kruskal.Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kruskal.Tests.dll -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kruskal.Tests.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kruskal.Tests.pdb -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kurskal.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kurskal.exe -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kurskal.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/bin/Debug/Kurskal.pdb -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.dll -------------------------------------------------------------------------------- /Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kruskal.Tests/obj/Debug/Kruskal.Tests.pdb -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/Edge.cs: -------------------------------------------------------------------------------- 1 | namespace Kurskal 2 | { 3 | using System; 4 | 5 | public class Edge : IComparable 6 | { 7 | public Edge(int startNode, int endNode, int weight) 8 | { 9 | this.StartNode = startNode; 10 | this.EndNode = endNode; 11 | this.Weight = weight; 12 | } 13 | 14 | public int StartNode { get; set; } 15 | 16 | public int EndNode { get; set; } 17 | 18 | public int Weight { get; set; } 19 | 20 | public int CompareTo(Edge other) 21 | { 22 | int weightCompared = this.Weight.CompareTo(other.Weight); 23 | return weightCompared; 24 | } 25 | 26 | public override string ToString() 27 | { 28 | return $"({this.StartNode} {this.EndNode}) -> {this.Weight}"; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/KruskalAlgorithm.cs: -------------------------------------------------------------------------------- 1 | namespace Kurskal 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | public class KruskalAlgorithm 7 | { 8 | public static List Kruskal(int numberOfVertices, List edges) 9 | { 10 | edges.Sort(); 11 | var parent = new int[numberOfVertices]; 12 | 13 | for (int i = 0; i < numberOfVertices; i++) 14 | { 15 | parent[i] = i; 16 | } 17 | 18 | var spanningTree = new List(); 19 | 20 | foreach (var edge in edges) 21 | { 22 | int rootStartNode = FindRoot(edge.StartNode, parent); 23 | int rootEndNode = FindRoot(edge.EndNode, parent); 24 | 25 | if (rootStartNode != rootEndNode) 26 | { 27 | spanningTree.Add(edge); 28 | parent[rootEndNode] = rootStartNode; 29 | } 30 | } 31 | 32 | return spanningTree; 33 | } 34 | 35 | public static int FindRoot(int node, int[] parent) 36 | { 37 | int root = node; 38 | while (parent[root] != root) 39 | { 40 | root = parent[root]; 41 | } 42 | return root; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/KruskalMain.cs: -------------------------------------------------------------------------------- 1 | namespace Kurskal 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | 7 | public class KruskalMain 8 | { 9 | public static void Main() 10 | { 11 | int numberOfVertices = 9; 12 | var graphEdges = new List 13 | { 14 | new Edge(0, 3, 9), 15 | new Edge(0, 5, 4), 16 | new Edge(0, 8, 5), 17 | new Edge(1, 4, 8), 18 | new Edge(1, 7, 7), 19 | new Edge(2, 6, 12), 20 | new Edge(3, 5, 2), 21 | new Edge(3, 6, 8), 22 | new Edge(3, 8, 20), 23 | new Edge(4, 7, 10), 24 | new Edge(6, 8, 7) 25 | }; 26 | 27 | var minimumSpanningForest = KruskalAlgorithm.Kruskal(numberOfVertices, graphEdges); 28 | 29 | Console.WriteLine("Minimum spanning forest weight: " + 30 | minimumSpanningForest.Sum(e => e.Weight)); 31 | 32 | foreach (var edge in minimumSpanningForest) 33 | { 34 | Console.WriteLine(edge); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.exe -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.pdb -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.vshost.exe -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/bin/Debug/Kurskal.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.exe.config 2 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.exe 3 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.pdb 4 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.csprojResolveAssemblyReference.cache 5 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.exe 6 | G:\SoftUni\SoftUni Work\Algorithms\AdvancedGraphLab\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.pdb 7 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.exe.config 8 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.exe 9 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.pdb 10 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.exe 11 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\bin\Debug\Kurskal.pdb 12 | C:\Users\gropc\Desktop\SoftUni\6. Advanced-Graph-Algorithms-Lab\Kurskal\obj\Debug\Kurskal.csprojResolveAssemblyReference.cache 13 | -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.exe -------------------------------------------------------------------------------- /Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Kruskal Algorithm/Kurskal/obj/Debug/Kurskal.pdb -------------------------------------------------------------------------------- /LongestPalindromicAlgorithm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | class Startup 3 | { 4 | static void Main() 5 | { 6 | string inputText = "kkbkannabannavannabb"; 7 | int maxLength = 1; 8 | int length = inputText.Length; 9 | int[,] matrix = new int[length,length]; 10 | int startAt = 1; 11 | 12 | //for 1: 13 | for (int i = 0; i < length; i++) 14 | { 15 | matrix[i, i] = 1; 16 | } 17 | 18 | //for 2: 19 | for (int i = 0; i < length-1; i++) 20 | { 21 | if (inputText[i]==inputText[i+1]) 22 | { 23 | maxLength = 2; 24 | startAt = i; 25 | matrix[i,i+1] = 1; 26 | } 27 | } 28 | 29 | //for >2: 30 | for (int k = 3; k <= length; k++) 31 | { 32 | for (int startingIndex = 0; startingIndex < length-k+1; startingIndex++) 33 | { 34 | int endingIndex = startingIndex + k - 1; 35 | if (matrix[startingIndex + 1, endingIndex-1] == 1 && inputText[startingIndex] ==inputText[endingIndex]) 36 | { 37 | Console.WriteLine(startingIndex+1 +" " + inputText[startingIndex]); 38 | matrix[startingIndex, endingIndex] = 1; 39 | maxLength = k; 40 | startAt = startingIndex; 41 | } 42 | } 43 | } 44 | Console.WriteLine(inputText.Substring(startAt,maxLength)); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MySolution.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | class StartUp 8 | { 9 | static void Main() 10 | { 11 | int[] arrayInput = { 1, 2, 3 }; 12 | Solution p = new Solution(); 13 | Console.WriteLine(p.solution(arrayInput)); 14 | } 15 | } 16 | 17 | class Solution 18 | { 19 | public int solution(int[] A) 20 | { 21 | A = A.Distinct().ToArray(); 22 | Array.Sort(A); 23 | bool hasPositive = false; 24 | int compareWith = 0; 25 | 26 | for (int i = 0; i < A.Length; i++) 27 | { 28 | if (A[i]>0) 29 | { 30 | hasPositive = true; 31 | compareWith++; 32 | if (A[i] != compareWith) 33 | { 34 | return compareWith; 35 | } 36 | } 37 | } 38 | 39 | if (hasPositive) 40 | { 41 | return A[A.Length-1] + 1; 42 | } 43 | else 44 | { 45 | return 1; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/Employee.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractQuick 8 | { 9 | public class Employee : IDeveloper, IPracticant, IWorker 10 | { 11 | public Employee(string name, int Salary) 12 | { 13 | this.Name = name; 14 | this.Salary = Salary; 15 | } 16 | 17 | public string Name { get; private set; } 18 | 19 | public int Salary { get; private set; } 20 | 21 | public string PresentYourself() 22 | { 23 | return "I am an employee!"; 24 | } 25 | 26 | string IPracticant.PresentYourself() 27 | { 28 | return "Practicant am I!"; 29 | } 30 | 31 | string IDeveloper.PresentYourself() 32 | { 33 | return "I am developer."; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/IDeveloper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractQuick 8 | { 9 | public interface IDeveloper 10 | { 11 | string Name { get; } 12 | int Salary { get; } 13 | string PresentYourself(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/IPracticant.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractQuick 8 | { 9 | public interface IPracticant 10 | { 11 | string Name { get;} 12 | string PresentYourself(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/IWorker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractQuick 8 | { 9 | public interface IWorker 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace AbstractQuick 8 | { 9 | class Startup 10 | { 11 | static void Main() 12 | { 13 | IDeveloper developer = new Employee("Jo-dev-a", 200); 14 | IPracticant practicant = new Employee("JoPracticant-a", 20); 15 | Employee employee = new Employee("Jo-employee-to", 250); 16 | 17 | List myList = new List(); 18 | myList.Add(developer); 19 | myList.Add(practicant); 20 | myList.Add(employee); 21 | 22 | foreach (object worker in myList) 23 | { 24 | //Console.WriteLine(worker.PresentYourself()); 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.exe -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.pdb -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.vshost.exe -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/bin/Debug/AbstractQuick.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\bin\Debug\AbstractQuick.exe.config 2 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\bin\Debug\AbstractQuick.exe 3 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\bin\Debug\AbstractQuick.pdb 4 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\obj\Debug\AbstractQuick.csprojResolveAssemblyReference.cache 5 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\obj\Debug\AbstractQuick.exe 6 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\AbstractQuick\obj\Debug\AbstractQuick.pdb 7 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.exe -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/obj/Debug/AbstractQuick.pdb -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 700e3a452e705817d62772acb49da7417255d972 2 | -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/AbstractQuick/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Polymorphism/AbstractQuick/obj/Release/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 700e3a452e705817d62772acb49da7417255d972 2 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/Shape.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace PolyShapes 8 | { 9 | public abstract class Shape 10 | { 11 | public abstract double CalculatePerimeter(); 12 | public abstract double CalculateArea(); 13 | public virtual string Draw() 14 | { 15 | return "Drawing"; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/bin/Debug/PolyShapes.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/PolyShapes/bin/Debug/PolyShapes.vshost.exe -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/bin/Debug/PolyShapes.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2e54beb686ebf4a88548fe94149126550e53fa0a 2 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/PolyShapes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/obj/Debug/PolyShapes.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\PolyShapes\bin\Debug\PolyShapes.exe.config 2 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\PolyShapes\obj\Debug\PolyShapes.csprojResolveAssemblyReference.cache 3 | -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/obj/Debug/PolyShapes.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/PolyShapes/obj/Debug/PolyShapes.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Polymorphism/PolyShapes/obj/Release/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2e54beb686ebf4a88548fe94149126550e53fa0a 2 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/Actor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Polymorphism 8 | { 9 | class Actor : IMoneyMaker 10 | { 11 | public void MakeMoney() 12 | { 13 | Console.WriteLine("I make money somehow"); 14 | } 15 | 16 | public string TellMeYourName(string name) 17 | { 18 | return $"My name is {name} and I am pleased to meet you!"; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/IMoneyMaker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Polymorphism 8 | { 9 | public interface IMoneyMaker 10 | { 11 | void MakeMoney(); 12 | string TellMeYourName(string name); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Polymorphism 8 | { 9 | class Startup 10 | { 11 | static void Main() 12 | { 13 | Student student = new Student(); 14 | Actor actor = new Actor(); 15 | 16 | student.MakeMoney(); 17 | student.MakeMoney(); 18 | actor.MakeMoney(); 19 | actor.MakeMoney(); 20 | 21 | Console.WriteLine(actor.TellMeYourName("Jo")); 22 | Console.WriteLine(student.TellMeYourName("Ben")); 23 | 24 | IMoneyMaker student2 = new Student(); 25 | IMoneyMaker actor2 = new Actor(); 26 | 27 | student2.MakeMoney(); 28 | student2.MakeMoney(); 29 | actor2.MakeMoney(); 30 | actor2.MakeMoney(); 31 | 32 | Console.WriteLine(actor2.TellMeYourName("Jo")); 33 | Console.WriteLine(student2.TellMeYourName("Ben")); 34 | Console.WriteLine(student.InfoSchool()); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/Student.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Polymorphism 8 | { 9 | class Student : IMoneyMaker 10 | { 11 | decimal Money { get; set; } 12 | 13 | public void MakeMoney() 14 | { 15 | Money += 10; 16 | Console.WriteLine($"The money are {Money}"); 17 | } 18 | 19 | public string TellMeYourName(string name) 20 | { 21 | return $"My name is {name} and I have ${Money}"; 22 | } 23 | 24 | public string InfoSchool() 25 | { 26 | return "I study at 163!"; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/bin/Debug/Polymorphism.exe -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/bin/Debug/Polymorphism.pdb -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/bin/Debug/Polymorphism.vshost.exe -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/bin/Debug/Polymorphism.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | dd74c2d8be87110771de958c5038d9cd61cda91e 2 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/Polymorphism.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\bin\Debug\Polymorphism.exe.config 2 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\bin\Debug\Polymorphism.exe 3 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\bin\Debug\Polymorphism.pdb 4 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\obj\Debug\Polymorphism.csprojResolveAssemblyReference.cache 5 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\obj\Debug\Polymorphism.exe 6 | c:\users\gropc\documents\visual studio 2015\Projects\Polymorphism\Polymorphism\obj\Debug\Polymorphism.pdb 7 | -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/Polymorphism.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/obj/Debug/Polymorphism.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/Polymorphism.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/obj/Debug/Polymorphism.exe -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Debug/Polymorphism.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/Polymorphism/obj/Debug/Polymorphism.pdb -------------------------------------------------------------------------------- /Polymorphism/Polymorphism/obj/Release/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | dd74c2d8be87110771de958c5038d9cd61cda91e 2 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/App.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/App.zip -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/Auto.cs: -------------------------------------------------------------------------------- 1 | namespace VehiclesApplication 2 | { 3 | public class Auto 4 | { 5 | public decimal AirConditionPerKm { get; } 6 | 7 | public decimal FuelQuantity { get; set; } 8 | 9 | public decimal LitersPerKm { get; set; } 10 | 11 | public decimal DrivenDistance { get; set; } 12 | 13 | public Auto(decimal fuelQuantity, decimal litersPerKm) 14 | { 15 | this.FuelQuantity = fuelQuantity; 16 | this.LitersPerKm = litersPerKm; 17 | } 18 | 19 | public virtual void Refuel(decimal liters, decimal wastePerRefuel = 0) 20 | { 21 | liters -= (liters * wastePerRefuel); 22 | FuelQuantity += liters; 23 | } 24 | 25 | public string DriveInfo(string typeOfAuto, decimal distance) 26 | { 27 | return $"{typeOfAuto} travelled {distance} km"; 28 | } 29 | 30 | public string WriteFuelRequest(string typeOfAuto) 31 | { 32 | return $"{typeOfAuto} needs refueling"; 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/Car.cs: -------------------------------------------------------------------------------- 1 | namespace VehiclesApplication 2 | { 3 | using System; 4 | 5 | public class Car : Auto 6 | { 7 | new public decimal AirConditionPerKm { get; } = 0.9M; 8 | 9 | public Car(decimal fuelQuantity, decimal litersPerKm) : base(fuelQuantity, litersPerKm) 10 | { 11 | } 12 | 13 | public bool CheckFuel(decimal distance) 14 | { 15 | return distance * AirConditionPerKm + distance * LitersPerKm >= FuelQuantity; 16 | } 17 | 18 | public override string ToString() 19 | { 20 | return $"Car: {FuelQuantity.ToString("F")}"; 21 | } 22 | 23 | public void Drive(decimal distance) 24 | { 25 | DrivenDistance += distance; 26 | FuelQuantity -= distance * AirConditionPerKm; 27 | FuelQuantity -= distance * LitersPerKm; 28 | Console.WriteLine(DrivenDistance); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/Truck.cs: -------------------------------------------------------------------------------- 1 | namespace VehiclesApplication 2 | { 3 | public class Truck : Auto 4 | { 5 | new public decimal AirConditionPerKm { get; } = 1.6M; 6 | public decimal WastePerRefuel { get; } = 0.05M; 7 | 8 | public Truck(decimal fuelQuantity, decimal litersPerKm) : base(fuelQuantity, litersPerKm) 9 | { 10 | } 11 | 12 | public bool CheckFuel(decimal distance) 13 | { 14 | return (distance * AirConditionPerKm + distance * LitersPerKm) >= FuelQuantity; 15 | } 16 | 17 | public void Drive(decimal distance) 18 | { 19 | DrivenDistance += distance; 20 | FuelQuantity -= distance * AirConditionPerKm; 21 | FuelQuantity -= distance * LitersPerKm; 22 | } 23 | 24 | 25 | public override string ToString() 26 | { 27 | return $"Truck: {FuelQuantity.ToString("F")}"; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.exe -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.pdb -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.vshost.exe -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/bin/Debug/VehiclesApplication.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 3d0bcedc6bb2d5befbac16fde1c4f509880fc50b 2 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\bin\Debug\VehiclesApplication.exe.config 2 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\obj\Debug\VehiclesApplication.csprojResolveAssemblyReference.cache 3 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\bin\Debug\VehiclesApplication.exe 4 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\bin\Debug\VehiclesApplication.pdb 5 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\obj\Debug\VehiclesApplication.exe 6 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication\obj\Debug\VehiclesApplication.pdb 7 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.exe -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication/obj/Debug/VehiclesApplication.pdb -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication/obj/Release/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 3d0bcedc6bb2d5befbac16fde1c4f509880fc50b 2 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/Models/Car.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace VehiclesApplication2.Models 8 | { 9 | public class Car : Vehicle 10 | { 11 | private const double airConditionConsumption = 0.9; 12 | 13 | public Car(double fuelQuantity, double fuelConsumption) 14 | : base(fuelQuantity, fuelConsumption + airConditionConsumption) 15 | { 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/Models/Truck.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace VehiclesApplication2.Models 8 | { 9 | public class Truck : Vehicle 10 | { 11 | private const double airConditionConsumption = 1.6; 12 | private const double wastedFuel = 0.05; 13 | 14 | public Truck(double fuelQuantity, double fuelConsumption) 15 | : base(fuelQuantity, fuelConsumption + airConditionConsumption) 16 | { 17 | } 18 | 19 | public override void Refuel(double amount) 20 | { 21 | base.Refuel(amount); 22 | this.FuelQuantity -= amount * wastedFuel; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/Models/Vehicle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace VehiclesApplication2.Models 8 | { 9 | public abstract class Vehicle 10 | { 11 | public Vehicle(double fuelQuantity, double fuelConsumption) 12 | { 13 | this.FuelQuantity = fuelQuantity; 14 | this.FuelConsumtion = fuelConsumption; 15 | } 16 | 17 | public double FuelQuantity { get; set; } 18 | 19 | public double FuelConsumtion { get; private set; } 20 | 21 | public string Drive(double distance) 22 | { 23 | string vehicleName = this.GetType().Name; 24 | double neededFuel = this.FuelConsumtion * distance; 25 | 26 | if (this.FuelQuantity >= neededFuel) 27 | { 28 | this.FuelQuantity -= neededFuel; 29 | return $"{vehicleName} travelled {distance} km"; 30 | } 31 | else 32 | { 33 | return $"{vehicleName} needs refueling"; 34 | } 35 | } 36 | 37 | public virtual void Refuel(double amount) 38 | { 39 | this.FuelQuantity += amount; 40 | } 41 | 42 | public override string ToString() 43 | { 44 | return $"{this.GetType().Name}: {this.FuelQuantity:F2}"; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/bin/Debug/VehiclesApplication2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/bin/Debug/VehiclesApplication2.exe -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/bin/Debug/VehiclesApplication2.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/bin/Debug/VehiclesApplication2.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/bin/Debug/VehiclesApplication2.pdb -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | aaa9825ce6c518e061361f03ec6054dee73c2099 2 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\bin\Debug\VehiclesApplication2.exe.config 2 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\bin\Debug\VehiclesApplication2.exe 3 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\bin\Debug\VehiclesApplication2.pdb 4 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\obj\Debug\VehiclesApplication2.csprojResolveAssemblyReference.cache 5 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\obj\Debug\VehiclesApplication2.exe 6 | C:\Users\gropc\Documents\Visual Studio 2015\Projects\Polymorphism\VehiclesApplication2\obj\Debug\VehiclesApplication2.pdb 7 | -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.exe -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/Polymorphism/VehiclesApplication2/obj/Debug/VehiclesApplication2.pdb -------------------------------------------------------------------------------- /Polymorphism/VehiclesApplication2/obj/Release/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | aaa9825ce6c518e061361f03ec6054dee73c2099 2 | -------------------------------------------------------------------------------- /PrintOneLineDictionary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | class PrintOneLineDictionary 5 | { 6 | static void Main() 7 | { 8 | Console.WriteLine(DateTime.Now.ToString("yyyyMMdd_hhmmss")); 9 | var myDict = new Dictionary {{ "a1", "b1" }, { "c1", "d1" },{ "a2", "b2" }, { "c2", "d2" },{ "a3", "b3" }, { "c3", "d3" },{ "a4", "b4" }, { "c4", "d4" },{ "a10", "b100" }, { "c10", "d100" }, { "a20", "b200" }, { "c20", "d200" },{ "a30", "b300" }, { "c30", "d300" },{ "a40", "b400" }, { "c40", "d400" },}; 10 | 11 | //var myDict = new Dictionary { 12 | // { "a1", "b1" }, { "c1", "d1" }, 13 | // { "a2", "b2" }, { "c2", "d2" }, 14 | // { "a3", "b3" }, { "c3", "d3" }, 15 | // { "a4", "b4" }, { "c4", "d4" }, 16 | // { "a10", "b100" }, { "c10", "d100" }, 17 | // { "a20", "b200" }, { "c20", "d200" }, 18 | // { "a30", "b300" }, { "c30", "d300" }, 19 | // { "a40", "b400" }, { "c40", "d400" }, 20 | //}; 21 | 22 | foreach (var item in myDict.Keys) 23 | { 24 | Console.WriteLine(myDict[item]); 25 | Console.WriteLine(item + "\n"); 26 | } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # C-Stuff 2 | After some time of doing VBA, PHP, Python and jQuery I think it is a good idea to go back to the roots again. Let's see what will come up. 3 | 4 | # [Visual Studio Debugging Shortcuts:](https://www.vitoshacademy.com/excel-my-shortcut-list/) 5 | 6 |
 7 | - F5              Run
 8 | - F10	          Step Over. Does not step into the current method and goes to the next statement.
 9 | - F11	          Step Into. Standard Step-by-step slow debugging.
10 | - Ctrl + F5	  Runs the project without debugging.
11 | - Shift + F11	  Step Out. Completes and steps out of the current method. Finishes the current method.
12 | - Shift + F5	  Stop. Debugging stops and returns Visual Studio to design mode.
13 | 
14 | - Ctrl + K + C    Comment
15 | - Ctrl + K + U    UnComment
16 | 
17 | - Ctrl + E + D    AutoFormat
18 | 
19 | -------------------------------------------------------------------------------- /ReadAndSort.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.IO; 5 | 6 | class Startup 7 | { 8 | static void Main() 9 | { 10 | string keyAlphabet = "abc~WITHSOMEADDITIONALLCHARACTERS~yz_"; 11 | string keyInput = File.ReadAllText(@"C:\Input.txt"); 12 | Dictionary countDic= new Dictionary(); 13 | 14 | for (int i = 0; i < keyAlphabet.Count(); i++) 15 | { 16 | countDic.Add(keyAlphabet[i].ToString(), 0); 17 | } 18 | 19 | for (int i = 0; i < keyInput.Count(); i++) 20 | { 21 | if (countDic.ContainsKey(keyInput[i].ToString())) 22 | { 23 | long countDicSize = countDic[keyInput[i].ToString()]; 24 | countDic[keyInput[i].ToString()] = countDicSize + 1; 25 | } 26 | } 27 | var ordered = countDic.OrderBy(x => x.Value).Reverse(); 28 | Console.WriteLine(String.Join("",ordered.ToArray())); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SomeDbProject/DropDbQuery.sql: -------------------------------------------------------------------------------- 1 | USE MASTER 2 | ALTER DATABASE [SomeDbProject.DbContext] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; 3 | GO 4 | DROP DATABASE [SomeDbProject.DbContext] 5 | -------------------------------------------------------------------------------- /SomeDbProject/ReadMe.md: -------------------------------------------------------------------------------- 1 | Code to the article in [VitoshAcademy](https://www.vitoshacademy.com): 2 | 3 | https://www.vitoshacademy.com/c-foreign-keys-in-entity-framework-code-first-query-with-linq/ 4 | 5 | :cactus::cat::dog::girl::fire::bear: 6 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.271 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SomeDbProject", "SomeDbProject\SomeDbProject.csproj", "{B03D53F4-F921-46B5-81B7-341129368CBE}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {B03D53F4-F921-46B5-81B7-341129368CBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {B03D53F4-F921-46B5-81B7-341129368CBE}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {B03D53F4-F921-46B5-81B7-341129368CBE}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {B03D53F4-F921-46B5-81B7-341129368CBE}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {C883A88F-490A-4309-A1E0-62DADC31D6E2} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/Company.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace SomeDbProject 4 | { 5 | class Company 6 | { 7 | public int Id { get; set; } 8 | public string Name { get; set; } 9 | public string Owner { get; set; } 10 | public int YearEstablished { get; set; } 11 | public virtual ICollection Cars { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/SomeDbContext.cs: -------------------------------------------------------------------------------- 1 | namespace SomeDbProject 2 | { 3 | using System.Data.Entity; 4 | 5 | class SomeDbContext : DbContext 6 | { 7 | public SomeDbContext() : base("name=SomeDbProjectConnectionString") 8 | { 9 | Database.SetInitializer(new DropCreateDatabaseAlways()); 10 | } 11 | public DbSet Cars { get; set; } 12 | public DbSet Companies { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/bin/Debug/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/bin/Debug/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/bin/Debug/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/bin/Debug/EntityFramework.dll -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/bin/Debug/SomeDbProject.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/bin/Debug/SomeDbProject.exe -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/bin/Debug/SomeDbProject.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/bin/Debug/SomeDbProject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/bin/Debug/SomeDbProject.pdb -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 8f0a3f942a09239438396159bd64cb3b70c0f0de 2 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\obj\Debug\SomeDbProject.csprojAssemblyReference.cache 2 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\obj\Debug\SomeDbProject.csproj.CoreCompileInputs.cache 3 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\SomeDbProject.exe.config 4 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\SomeDbProject.exe 5 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\SomeDbProject.pdb 6 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\EntityFramework.dll 7 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\EntityFramework.SqlServer.dll 8 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\EntityFramework.xml 9 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\bin\Debug\EntityFramework.SqlServer.xml 10 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\obj\Debug\SomeDbProject.csproj.CopyComplete 11 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\obj\Debug\SomeDbProject.exe 12 | C:\Users\VDOY141\source\repos\SomeDbProject\SomeDbProject\obj\Debug\SomeDbProject.pdb 13 | -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.exe -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/SomeDbProject/obj/Debug/SomeDbProject.pdb -------------------------------------------------------------------------------- /SomeDbProject/SomeDbProject/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/content/net40/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/content/net40/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1 -------------------------------------------------------------------------------- /SomeDbProject/packages/EntityFramework.6.2.0/tools/migrate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/SomeDbProject/packages/EntityFramework.6.2.0/tools/migrate.exe -------------------------------------------------------------------------------- /StoreData/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /StoreData/Customer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreData 8 | { 9 | public class Customer 10 | { 11 | public int Id { get; set; } 12 | 13 | public string Name { get; set; } 14 | 15 | public string Email { get; set; } 16 | 17 | public string CreditCardNumber { get; set; } 18 | 19 | public List SalesForCustomer { get; set; } 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /StoreData/Migrations/201705241059067_InitialCreate.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace StoreData.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] 10 | public sealed partial class InitialCreate : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "201705241059067_InitialCreate"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /StoreData/Migrations/201705241334258_Version1.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace StoreData.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] 10 | public sealed partial class Version1 : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(Version1)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "201705241334258_Version1"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /StoreData/Migrations/201705241334258_Version1.cs: -------------------------------------------------------------------------------- 1 | namespace StoreData.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class Version1 : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | AddColumn("dbo.Products", "Desciption", c => c.String()); 11 | } 12 | 13 | public override void Down() 14 | { 15 | DropColumn("dbo.Products", "Desciption"); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /StoreData/Migrations/201705241335297_Version2.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace StoreData.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")] 10 | public sealed partial class Version2 : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(Version2)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "201705241335297_Version2"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /StoreData/Migrations/201705241335297_Version2.cs: -------------------------------------------------------------------------------- 1 | namespace StoreData.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class Version2 : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | DropColumn("dbo.Products", "Desciption"); 11 | } 12 | 13 | public override void Down() 14 | { 15 | AddColumn("dbo.Products", "Desciption", c => c.String()); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /StoreData/Migrations/Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace StoreData.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity; 5 | using System.Data.Entity.Migrations; 6 | using System.Linq; 7 | 8 | internal sealed class Configuration : DbMigrationsConfiguration 9 | { 10 | public Configuration() 11 | { 12 | AutomaticMigrationsEnabled = false; 13 | ContextKey = "StoreData.SalesContext"; 14 | } 15 | 16 | protected override void Seed(StoreData.SalesContext context) 17 | { 18 | // This method will be called after migrating to the latest version. 19 | 20 | // You can use the DbSet.AddOrUpdate() helper extension method 21 | // to avoid creating duplicate seed data. E.g. 22 | // 23 | // context.People.AddOrUpdate( 24 | // p => p.FullName, 25 | // new Person { FullName = "Andrew Peters" }, 26 | // new Person { FullName = "Brice Lambson" }, 27 | // new Person { FullName = "Rowan Miller" } 28 | // ); 29 | // 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /StoreData/Product.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreData 8 | { 9 | public class Product 10 | { 11 | public int Id { get; set; } 12 | 13 | public string Name { get; set; } 14 | 15 | public int Quantity { get; set; } 16 | 17 | public decimal Price { get; set; } 18 | 19 | public string Description { get; set; } = "No description"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /StoreData/Readme.md: -------------------------------------------------------------------------------- 1 | ***Entity Framework Basics*** 2 | 3 | https://msdn.microsoft.com/en-us/library/jj591621(v=vs.113).aspx 4 | 5 | *Getting SQL Script:* 6 | Run the Update-Database -Script -SourceMigration: $InitialDatabase -TargetMigration: AddPostAbstract command in Package Manager Console 7 | 8 | *Migrate to a Specific Version (Including Downgrade)* 9 | Run the Update-Database –TargetMigration: AddBlogUrl command in Package Manager Console. 10 | This command will run the Down script for our AddBlogAbstract and AddPostClass migrations. 11 | If you want to roll all the way back to an empty database then you can use the Update-Database –TargetMigration: $InitialDatabase command. 12 | 13 | *Add-Migration* will scaffold the next migration based on changes you have made to your model since the last migration was created 14 | *Update-Database* will apply any pending migrations to the database 15 | -------------------------------------------------------------------------------- /StoreData/Sale.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreData 8 | { 9 | public class Sale 10 | { 11 | public int Id { get; set; } 12 | public Product Product { get; set; } 13 | public Customer Customer { get; set; } 14 | public StoreLocation StoreLocation { get; set; } 15 | public DateTime Date { get; set; } 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /StoreData/SalesContext.cs: -------------------------------------------------------------------------------- 1 | namespace StoreData 2 | { 3 | using System; 4 | using System.Data.Entity; 5 | using System.Linq; 6 | 7 | public class SalesContext : DbContext 8 | { 9 | public SalesContext() 10 | : base("name=SalesContext") 11 | { 12 | Database.SetInitializer(new CreateDatabaseIfNotExists()); 13 | } 14 | 15 | public virtual DbSet Products { get; set; } 16 | public virtual DbSet Sales { get; set; } 17 | public virtual DbSet Customers { get; set; } 18 | public virtual DbSet Locations { get; set; } 19 | 20 | 21 | } 22 | 23 | 24 | 25 | } -------------------------------------------------------------------------------- /StoreData/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreData 8 | { 9 | class Startup 10 | { 11 | static void Main() 12 | { 13 | Seed.EnterData(); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /StoreData/StoreData.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StoreData", "StoreData.csproj", "{C1B1D6FB-A489-4342-AA2E-F817AF895CA4}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C1B1D6FB-A489-4342-AA2E-F817AF895CA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {C1B1D6FB-A489-4342-AA2E-F817AF895CA4}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {C1B1D6FB-A489-4342-AA2E-F817AF895CA4}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {C1B1D6FB-A489-4342-AA2E-F817AF895CA4}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /StoreData/StoreLocation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace StoreData 8 | { 9 | public class StoreLocation 10 | { 11 | public int Id { get; set; } 12 | public string LocationName { get; set; } 13 | public List Sales { get; set; } 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /StoreData/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/StoreData/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /StoreData/obj/Debug/StoreData.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\StoreData.exe.config 2 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\StoreData.exe 3 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\StoreData.pdb 4 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\EntityFramework.dll 5 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\EntityFramework.SqlServer.dll 6 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\EntityFramework.xml 7 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\bin\Debug\EntityFramework.SqlServer.xml 8 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\obj\Debug\StoreData.csprojResolveAssemblyReference.cache 9 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\obj\Debug\StoreData.exe 10 | c:\users\gropc\documents\visual studio 2015\Projects\StoreData\StoreData\obj\Debug\StoreData.pdb 11 | -------------------------------------------------------------------------------- /StoreData/obj/Debug/StoreData.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/StoreData/obj/Debug/StoreData.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /StoreData/obj/Debug/StoreData.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/StoreData/obj/Debug/StoreData.exe -------------------------------------------------------------------------------- /StoreData/obj/Debug/StoreData.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/StoreData/obj/Debug/StoreData.pdb -------------------------------------------------------------------------------- /StoreData/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /ThreadExample001/ThreadsExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Threading; 7 | 8 | namespace threads 9 | { 10 | class ThreadsExample 11 | { 12 | static void Main() 13 | { 14 | Writer oWriter1 = new Writer(); 15 | Writer oWriter2 = new Writer(); 16 | Writer oWriter3 = new Writer(); 17 | 18 | Thread oThread1 = new Thread(() => oWriter1.WriteSomething("I am the first")); 19 | Thread oThread2 = new Thread(() => oWriter2.WriteSomething("2222")); 20 | Thread oThread3 = new Thread(() => oWriter3.WriteSomethingOnce()); 21 | 22 | oThread1.Start(); 23 | oThread2.Start(); 24 | oThread3.Start(); 25 | 26 | Thread.Sleep(100); 27 | 28 | oThread1.Abort(); 29 | oThread2.Abort(); 30 | oThread3.Abort(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /ThreadExample001/Writer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace threads 8 | { 9 | public class Writer 10 | { 11 | public void WriteSomething(string strSomething) 12 | { 13 | while (true) 14 | { 15 | Console.WriteLine(strSomething); 16 | } 17 | } 18 | 19 | public void WriteSomethingOnce() 20 | { 21 | Console.WriteLine("Writing just once"); 22 | } 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /VanyaAndLabel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class vitbit 4 | { 5 | static void Main() 6 | { 7 | string input = Console.ReadLine(); 8 | long zeroes = 0; 9 | 10 | foreach (char my_char in input) 11 | { 12 | long i = GenerateValue(my_char); 13 | 14 | for (int j = 5; j >= 0; j--) 15 | { 16 | if (((i >> j) & 1) == 0) 17 | zeroes++; 18 | } 19 | } 20 | 21 | long result = 1; 22 | long mod = (long)(Math.Pow(10, 9))+7; 23 | 24 | for (long i = 0; i < zeroes; i++) 25 | { 26 | result *= 3; 27 | result %= mod; 28 | } 29 | 30 | Console.WriteLine(result); 31 | } 32 | 33 | static long GenerateValue(char my_char) 34 | { 35 | if (my_char >= '0' && my_char <= '9') 36 | return my_char-'0'; 37 | if (my_char >= 'a' && my_char <= 'z') 38 | return my_char - 'a' + 36; 39 | if (my_char >= 'A' && my_char <= 'Z') 40 | return my_char - 'A' + 10; 41 | if (my_char == '-') 42 | return 62; 43 | return 63; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Vasiliy.cs: -------------------------------------------------------------------------------- 1 | //http://codeforces.com/contest/706/problem/A 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | class Code_160813_01 10 | { 11 | static void Main() 12 | { 13 | string[] s_input = Console.ReadLine().Split(); 14 | 15 | int i_point_a = int.Parse(s_input[0]); 16 | int i_point_b = int.Parse(s_input[1]); 17 | int i_cars_total = int.Parse(Console.ReadLine()); 18 | 19 | List> l_cars_info = new List>(); 20 | List l_result = new List(); 21 | 22 | double d_distance; 23 | double d_result; 24 | 25 | for (int i = 0; i < i_cars_total; i++) 26 | { 27 | List l_3 = new List(); 28 | string[] s_input2 = Console.ReadLine().Split(); 29 | l_3.Add(int.Parse(s_input2[0])); 30 | l_3.Add(int.Parse(s_input2[1])); 31 | l_3.Add(int.Parse(s_input2[2])); 32 | l_cars_info.Add(l_3); 33 | } 34 | 35 | for (int i = 0; i < i_cars_total; i++) 36 | { 37 | d_distance = Math.Sqrt(Math.Pow(i_point_a - l_cars_info[i][0],2)+Math.Pow(i_point_b-l_cars_info[i][1],2)); 38 | d_distance = d_distance / l_cars_info[i][2]; 39 | l_result.Add(d_distance); 40 | } 41 | 42 | d_result = l_result.Min(); 43 | Console.WriteLine(d_result.ToString(System.Globalization.CultureInfo.GetCultureInfo("en-US"))); 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /VasyaAndStrokes.cs: -------------------------------------------------------------------------------- 1 | //http://codeforces.com/problemset/problem/676/C?locale=en 2 | using System; 3 | using System.Linq; 4 | 5 | class VasyaAndStroka 6 | { 7 | static void Main() 8 | { 9 | int[] int_line = Console.ReadLine().Split(new char[] { ' ' }).Select(int.Parse).ToArray(); 10 | int n = int_line[0]; 11 | int k = int_line[1]; 12 | 13 | string str_line = Console.ReadLine(); 14 | 15 | int ans = 0; 16 | int a = 0; 17 | int b = 0; 18 | int position = 0; 19 | 20 | foreach (var item in str_line) 21 | { 22 | if (item == 'a') 23 | { 24 | a++; 25 | } 26 | else 27 | { 28 | b++; 29 | } 30 | if (Math.Min(a,b) > k) 31 | { 32 | if (str_line[position] =='a') 33 | { 34 | a--; 35 | } 36 | else 37 | { 38 | b--; 39 | } 40 | position++; 41 | } 42 | else 43 | { 44 | ans++; 45 | } 46 | } 47 | Console.WriteLine(ans); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NewWindowForm", "NewWindowForm\NewWindowForm.csproj", "{8E6100ED-E56E-49ED-B85A-3CACE05B7681}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {8E6100ED-E56E-49ED-B85A-3CACE05B7681}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {8E6100ED-E56E-49ED-B85A-3CACE05B7681}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {8E6100ED-E56E-49ED-B85A-3CACE05B7681}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {8E6100ED-E56E-49ED-B85A-3CACE05B7681}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace NewWindowForm 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace NewWindowForm.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.exe -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.pdb -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.vshost.exe -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/bin/Debug/NewWindowForm.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.Form1.resources -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.Properties.Resources.resources -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\bin\Debug\NewWindowForm.exe.config 2 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\bin\Debug\NewWindowForm.exe 3 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\bin\Debug\NewWindowForm.pdb 4 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.csprojResolveAssemblyReference.cache 5 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.csproj.ResolveComReference.cache 6 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.Form1.resources 7 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.Properties.Resources.resources 8 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.csproj.GenerateResource.Cache 9 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.exe 10 | c:\users\gropc\documents\visual studio 2015\Projects\NewWindowForm\NewWindowForm\obj\Debug\NewWindowForm.pdb 11 | -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csproj.ResolveComReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csproj.ResolveComReference.cache -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.exe -------------------------------------------------------------------------------- /WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/WindowFormExample/NewWindowForm/obj/Debug/NewWindowForm.pdb -------------------------------------------------------------------------------- /WindowFormExample/ReadMe.MD: -------------------------------------------------------------------------------- 1 | C# - Looking for a value in Excel with C# & VisualStudio 2 | ---- 3 | 4 | [This is the code for this article:](http://www.vitoshacademy.com/c-looking-for-a-value-in-excel-with-c-visualstudio/) 5 | 6 | The raw form and the form with some input: 7 | 8 | ![](http://www.vitoshacademy.com/wp-content/uploads/2018/03/pic1.png) 9 | 10 | Successful found! 11 | 12 | ![](http://www.vitoshacademy.com/wp-content/uploads/2018/03/Capture.png) 13 | 14 | Not successful! 15 | 16 | ![](http://www.vitoshacademy.com/wp-content/uploads/2018/03/pic2.png) 17 | -------------------------------------------------------------------------------- /ca120517/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ca120517/Models/Address.cs: -------------------------------------------------------------------------------- 1 | namespace ca120517 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | using System.Data.Entity.Spatial; 8 | 9 | public partial class Address 10 | { 11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 12 | public Address() 13 | { 14 | Employees = new HashSet(); 15 | } 16 | 17 | public int AddressID { get; set; } 18 | 19 | [Required] 20 | [StringLength(100)] 21 | public string AddressText { get; set; } 22 | 23 | public int? TownID { get; set; } 24 | 25 | public virtual Town Town { get; set; } 26 | 27 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 28 | public virtual ICollection Employees { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ca120517/Models/Department.cs: -------------------------------------------------------------------------------- 1 | namespace ca120517 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | using System.Data.Entity.Spatial; 8 | 9 | public partial class Department 10 | { 11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 12 | public Department() 13 | { 14 | Employees = new HashSet(); 15 | } 16 | 17 | public int DepartmentID { get; set; } 18 | 19 | [Required] 20 | [StringLength(50)] 21 | public string Name { get; set; } 22 | 23 | public int ManagerID { get; set; } 24 | 25 | public virtual Employee Employee { get; set; } 26 | 27 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 28 | public virtual ICollection Employees { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ca120517/Models/Project.cs: -------------------------------------------------------------------------------- 1 | namespace ca120517 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | using System.Data.Entity.Spatial; 8 | 9 | public partial class Project 10 | { 11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 12 | public Project() 13 | { 14 | Employees = new HashSet(); 15 | } 16 | 17 | public int ProjectID { get; set; } 18 | 19 | [Required] 20 | [StringLength(50)] 21 | public string Name { get; set; } 22 | 23 | [Column(TypeName = "ntext")] 24 | public string Description { get; set; } 25 | 26 | [Column(TypeName = "smalldatetime")] 27 | public DateTime StartDate { get; set; } 28 | 29 | [Column(TypeName = "smalldatetime")] 30 | public DateTime? EndDate { get; set; } 31 | 32 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 33 | public virtual ICollection Employees { get; set; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ca120517/Models/Town.cs: -------------------------------------------------------------------------------- 1 | namespace ca120517 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | using System.Data.Entity.Spatial; 8 | 9 | public partial class Town 10 | { 11 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 12 | public Town() 13 | { 14 | Addresses = new HashSet
(); 15 | } 16 | 17 | public int TownID { get; set; } 18 | 19 | [Required] 20 | [StringLength(50)] 21 | public string Name { get; set; } 22 | 23 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 24 | public virtual ICollection
Addresses { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ca120517/Models/sysdiagram.cs: -------------------------------------------------------------------------------- 1 | namespace ca120517 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel.DataAnnotations; 6 | using System.ComponentModel.DataAnnotations.Schema; 7 | using System.Data.Entity.Spatial; 8 | 9 | public partial class sysdiagram 10 | { 11 | [Required] 12 | [StringLength(128)] 13 | public string name { get; set; } 14 | 15 | public int principal_id { get; set; } 16 | 17 | [Key] 18 | public int diagram_id { get; set; } 19 | 20 | public int? version { get; set; } 21 | 22 | public byte[] definition { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ca120517/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ca120517")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ca120517")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("e65e4fb9-8a67-43be-af0c-6d52c8f0063d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /ca120517/bin/Debug/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/bin/Debug/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /ca120517/bin/Debug/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/bin/Debug/EntityFramework.dll -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/bin/Debug/ca120517.exe -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/bin/Debug/ca120517.pdb -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/bin/Debug/ca120517.vshost.exe -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ca120517/bin/Debug/ca120517.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /ca120517/ca120517.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ca120517", "ca120517.csproj", "{E65E4FB9-8A67-43BE-AF0C-6D52C8F0063D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E65E4FB9-8A67-43BE-AF0C-6D52C8F0063D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {E65E4FB9-8A67-43BE-AF0C-6D52C8F0063D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {E65E4FB9-8A67-43BE-AF0C-6D52C8F0063D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {E65E4FB9-8A67-43BE-AF0C-6D52C8F0063D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ca120517/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /ca120517/obj/Debug/ca120517.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\ca120517.exe.config 2 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\obj\Debug\ca120517.csprojResolveAssemblyReference.cache 3 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\ca120517.exe 4 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\ca120517.pdb 5 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\EntityFramework.dll 6 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\EntityFramework.SqlServer.dll 7 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\EntityFramework.xml 8 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\bin\Debug\EntityFramework.SqlServer.xml 9 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\obj\Debug\ca120517.exe 10 | C:\Users\v.doynov\Desktop\BA Tools\SkoLust\InitialInput4\ca120517\obj\Debug\ca120517.pdb 11 | -------------------------------------------------------------------------------- /ca120517/obj/Debug/ca120517.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/obj/Debug/ca120517.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /ca120517/obj/Debug/ca120517.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/obj/Debug/ca120517.exe -------------------------------------------------------------------------------- /ca120517/obj/Debug/ca120517.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/obj/Debug/ca120517.pdb -------------------------------------------------------------------------------- /ca120517/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/Content/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/Content/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/EntityFramework.6.1.3.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/EntityFramework.6.1.3.nupkg -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/lib/net40/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/lib/net40/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/lib/net45/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/lib/net45/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.PowerShell.Utility.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.PowerShell.Utility.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.PowerShell.dll -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/tools/EntityFramework.psd1 -------------------------------------------------------------------------------- /ca120517/packages/EntityFramework.6.1.3/tools/migrate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/ca120517/packages/EntityFramework.6.1.3/tools/migrate.exe -------------------------------------------------------------------------------- /cf_Checking_the_Calendar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | //http://codeforces.com/contest/724/problem/A 4 | 5 | class Problem1 6 | { 7 | static void Main() 8 | { 9 | string str_first = Console.ReadLine(); 10 | string str_second = Console.ReadLine(); 11 | 12 | List my_days = new List { "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" }; 13 | 14 | int i_first = my_days.FindIndex(my_day => my_day.Equals(str_first)); 15 | int i_second = my_days.FindIndex(my_day => my_day.Equals(str_second)); 16 | 17 | if ((i_first == i_second) || ((i_first+2) % 7 == i_second) || ((i_first + 3) % 7 == i_second)) 18 | { 19 | Console.WriteLine("YES"); 20 | }else{ 21 | Console.WriteLine("NO"); 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /linq_ignore_lists.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | 6 | class Sample 7 | { 8 | static void Main() 9 | { 10 | List lstStrMyList = new List() { "Vityata","Vitosh","Academy","MyAcademy","Vitosh", "Pesho", "Gosho"}; 11 | List lstStrIgnore = new List() { "Pesho", "Gosho", "Atanas", "Academy" }; 12 | string strIgnored = "Academy"; 13 | 14 | List lstStrFiltered = lstStrMyList.Distinct().Where(x => x != strIgnored).ToList(); 15 | Console.WriteLine("List 1:"); 16 | foreach (var item in lstStrFiltered) 17 | { 18 | Console.WriteLine(item); 19 | } 20 | 21 | 22 | List lstStrFiltered2 = lstStrMyList.Distinct().Where(x => !lstStrIgnore.Any(e => x.Contains(e))).ToList(); 23 | Console.WriteLine("List 2:"); 24 | foreach (var item in lstStrFiltered2) 25 | { 26 | Console.WriteLine(item); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /linq_test/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /linq_test/Company.cs: -------------------------------------------------------------------------------- 1 | namespace linq_test 2 | { 3 | class Company 4 | { 5 | private string _companyName; 6 | private string _companyCEO; 7 | private int _companyProfit; 8 | private string _companyCountry; 9 | 10 | public Company(string name, string ceo = "No CEO", int profit = 0, string country = "Bulgaria") 11 | { 12 | _companyName = name; 13 | _companyCEO = ceo; 14 | _companyProfit = profit; 15 | _companyCountry = country; 16 | } 17 | 18 | public string name 19 | { 20 | get { return _companyName; } 21 | } 22 | 23 | public int profit 24 | { 25 | get {return _companyProfit;} 26 | } 27 | 28 | public string country 29 | { 30 | get {return _companyCountry;} 31 | } 32 | 33 | public string ceo 34 | { 35 | get 36 | { 37 | return _companyCEO; 38 | } 39 | set 40 | { 41 | _companyCEO = value; 42 | } 43 | } 44 | 45 | public override string ToString() 46 | { 47 | return string.Format("This company is named {0}. The CEO is {1}. The profit is {2}. It is located in {3}.", 48 | this.name, this.ceo, this.profit, this.country); 49 | } 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /linq_test/bin/Debug/linq_test.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/bin/Debug/linq_test.exe -------------------------------------------------------------------------------- /linq_test/bin/Debug/linq_test.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /linq_test/bin/Debug/linq_test.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/bin/Debug/linq_test.pdb -------------------------------------------------------------------------------- /linq_test/bin/Debug/linq_test.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/bin/Debug/linq_test.vshost.exe -------------------------------------------------------------------------------- /linq_test/bin/Debug/linq_test.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /linq_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /linq_test/obj/Debug/linq_test.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\bin\Debug\linq_test.exe.config 2 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\bin\Debug\linq_test.exe 3 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\bin\Debug\linq_test.pdb 4 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\obj\Debug\linq_test.csprojResolveAssemblyReference.cache 5 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\obj\Debug\linq_test.exe 6 | C:\Users\gropc\Downloads\8. Greedy-Algorithms-Lab\7. Greedy-Algorithms-Lab\Greedy-Algorithms-Lab\linq_test\obj\Debug\linq_test.pdb 7 | -------------------------------------------------------------------------------- /linq_test/obj/Debug/linq_test.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/obj/Debug/linq_test.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /linq_test/obj/Debug/linq_test.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/obj/Debug/linq_test.exe -------------------------------------------------------------------------------- /linq_test/obj/Debug/linq_test.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Vitosh/C-Sharp-Stuff/db7c065c2a6b3ffa473d7c6caa16907d61ce2ad5/linq_test/obj/Debug/linq_test.pdb --------------------------------------------------------------------------------