Tuesday, August 7, 2012

Loading assembly into current application.

AppDomain domain = AppDomain.CurrentDomain;
string myPath = Path.Combine(domain.BaseDirectory, "ramneekexample.dll");
Assembly asm = Assembly.LoadFrom(myPath);

Multicast deligate with DATE TIME arguments

public delegate void PowerDeviceOn(DateTime autoPowerOff);