Today I had to write a solution of the following problem – imagine you have two lists like this: var liPhoneBook = new List<tuple<int,string>>(); liPhoneBook.Add(Tuple.Create(100, “Pesho”)); liPhoneBook.Add(Tuple.Create(200, “Gosho”)); liPhoneBook.Add(Tuple.Create(300, “Atanas”)); liPhoneBook.Add(Tuple.Create(400, “Az”)); liPhoneBook.Add(Tuple.Create(500, “Ivan”)); liPhoneBook.Add(Tuple.Create(600, “Ivan Petrov”)); liPhoneBook.Add(Tuple.Create(900, “Vitosh”)); List …

C# Algorithms – Phone Book Implementation – List of int and string with a tuple Read more »

After writing yesterday about the insertion sort algorithm with Python here, today I have decided to continue with the algorithms. Thus, I have decided to take a look at two other simple sorting algorithms – Count Sort and Selection Sort. …

C# Algorithms – Selection Sort and Count Sort Read more »

Looking into some programming task is sometimes challenging. You may think that the answer is quite simple, but actually someone has decided to make you sweat. In this task  you should read one line from the console and print the sum …

C# – Taking only numbers from array and working with them – (The Horror) Read more »

In this article I present a code from the book “Pro WPF 4.5. in C#“, which I consider useful and interesting. This example has impressed me with its structure – it simply gives good practises for creation of 23 different …

C# – WPF – 23 Well Written WPF Control Examples Read more »

In the current article I proudly present a simple application, which creates a simple Excel file from XAML. In the example I present I am using Excel 2010 as this is my current version. In order to be able to …

C# – WPF – Generate an Excel file with WPF Read more »

In this article I present a code from the book “Pro WPF 4.5. in C#“, which I consider useful and interesting. The application concerns building a simple program where you may ask a yes-no question and get a random answer. …

C# – WPF – EightBall Application – simple code Read more »