Skip to content

Instantly share code, notes, and snippets.

@nasser
Created October 2, 2014 18:21
Show Gist options
  • Save nasser/2a8f60252e5f784c7fd3 to your computer and use it in GitHub Desktop.
Save nasser/2a8f60252e5f784c7fd3 to your computer and use it in GitHub Desktop.
AppDomain domain = AppDomain.CurrentDomain;
Assembly[] assys = domain.GetAssemblies();
List<Type> candidateTypes = new List<Type>();
+
+ Console.WriteLine(" * Fast Path(" + p + ")");
+ foreach (Assembly assy in assys)
+ {
+ Type t1 = assy.GetType(p, false);
+ if(t1 != null)
+ return t1;
+ }
+ Console.WriteLine(" * Slow Path(" + p + ")");
foreach (Assembly assy1 in assys)
{
Type t1 = assy1.GetType(p, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment