Async and await in .NET 4.5

Yesterday I was playing around with Windows 8 and VisualStudio 11 and because my University is developing a web service to connect to the class schedule I played around with the semi-finished service and tried to get some data out.

The implementation of the alpha service is horrible, there is no authorisation and there isn´t [...]

Simple TCP/IP client/server application

Intro

For a university lecture I had to write a simple application to demonstrate a client/server communication over TCP/IP. I know there are many demos in the world wide web and now there is one more ;-)

Code

Below I post you the code and at the end of the post you will find a [...]

Work with Exchange Web Services

The following code has cost me allot of time. It was very hard to find the pieces and put them together. So I hope I can help a few of you with that post ;-)

The Problem

The problem was that I need to access different Exchange accounts via Exchange Web Services (EWS) [...]

Ideensammlung

Einige meiner Ideen die ich seit Jahren sammle und nie die Zeit gefunden habe sie umzusetzen. Möglicherweise hat von euch jemand lust das ein oder andere umzusetzen ;-)

 

SerienCheck

Ein Tool welches online prüft ob neue Folgen von eingetragenen Serien vorhanden sind und den Link zu diesen in die Zwischenablage kopiert. Tags: #jdownloader #tool [...]

How to use Eventhandlers in C#

class Program { static void Main() { //init stock Stock s1 = new Stock(); //add handler s1.PriceChanged += new PriceChangedHandler(s1_PriceChanged); s1.MyFunction += new MyFunctionhandler(s1_MyFunction); //change something s1.Price = 12; s1.myFunction(2); Console.Read(); } public static void s1_PriceChanged(decimal a, decimal b) { Console.WriteLine(“Old value: ” + a + ” – new value: ” + b); } public [...]