Nice way to call a private method in C# without using “reflection”

0 Comments   // Calling code that uses delegates var subject = new Subject(); var doSomething = (Func<String, String>) Delegate.CreateDelegate(typeof(Func<String, String>), subject, "DoSomething"); Console.WriteLine(doSomething("Hello Freggles"));   Note that this only works for instance methods and

How to connect to MySQL by using ADO .NET and C# 4.0


Download the MySQL drivers at: Install the drivers on you’re development machine.   At references to: – System.Data – MySql.Data [C:\Program Files (x86)\MySQL\MySQL Connector Net 6.4.3\Assemblies\v4.0\MySql.Data.dll]   The following code will output all database

Removing red eyes by using Paint .NET


Followed the steps described in the following blog post to remove red eyes from a photo by using paint .net: