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

0 Comments

  http://elegantcode.com/2010/01/28/calling-non-public-methods/   // 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

0 Comments

Download the MySQL drivers at: http://dev.mysql.com/downloads/connector/net/ 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

0 Comments

Followed the steps described in the following blog post to remove red eyes from a photo by using paint .net:   http://www.5min.com/Video/How-to-Remove-Red-Eye-in-PaintNET-188472500