Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 12, 2014 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirReshetnikov/8379747 to your computer and use it in GitHub Desktop.
Save VladimirReshetnikov/8379747 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Reflection;
class Program
{
static void Main()
{
var allocate = typeof(RuntimeTypeHandle).GetMethod("Allocate", (BindingFlags)40);
var open = allocate.Invoke(null, new[] { typeof(IList<>) });
Console.WriteLine(open.GetType());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment