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

  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 not for static methods.

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

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 names to the console window: using System.Data; using MySql.Data.MySqlClient; string connectionString = String.Format("Server={0};Port={1};Database={2};Uid={3};Pwd={4};", "192.168.1.1", "3306", …