Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rickdailey on github.
  • I am rickdailey (https://keybase.io/rickdailey) on keybase.
  • I have a public key whose fingerprint is 0AC3 928A D4A1 4972 62CE 598F D09A 72A3 F79B 5346

To claim this, I am signing this object:

SetTitleMatchMode, 2
CmdLinePath:= "U:\Software\cmder\cmder.exe"
#`::
If WinActive("ahk_class CabinetWClass") ; for use in explorer.
{
ClipSaved := ClipboardAll
Send !d
public static DataTable ToDataTable<TKey, T>(this IEnumerable<IGrouping<TKey, T>> data, string keyName = "Key")
{
var properties = TypeDescriptor.GetProperties(typeof(T));
var table = new DataTable();
table.Columns.Add(keyName, GetRealType(typeof(TKey)));
foreach (PropertyDescriptor prop in properties)
table.Columns.Add(prop.Name, GetRealType(prop.PropertyType));