Created
October 2, 2014 18:21
-
-
Save nasser/2a8f60252e5f784c7fd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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