Advertisement
Guest User

Untitled

a guest
May 5th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.20 KB | None | 0 0
  1.   static void JitCode()
  2.     {
  3.         Type[] types = System.Reflection.Assembly.GetExecutingAssembly().GetTypes();
  4.         for (int typeIx = 0; typeIx < types.Length; ++typeIx)
  5.         {
  6.             if (!types[typeIx].IsGenericType)
  7.             {
  8.                 continue;
  9.             }
  10.             a = typeIx;
  11.             System.Reflection.MethodInfo[] methodInfos = types[typeIx].GetMethods(System.Reflection.BindingFlags.DeclaredOnly |
  12.                                 System.Reflection.BindingFlags.NonPublic |
  13.                                 System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance |
  14.                                 System.Reflection.BindingFlags.Static);
  15.  
  16.             for (int methodIx = 0; methodIx < methodInfos.Length; ++methodIx)
  17.             {
  18.                 b = methodIx;
  19.                 if ((methodInfos[methodIx].Attributes & System.Reflection.MethodAttributes.Abstract) == System.Reflection.MethodAttributes.Abstract)
  20.                 {
  21.                     continue;
  22.                 }
  23.                 if (methodInfos[methodIx].Name.CompareTo("CountIEnumerable") != 0
  24.                    && methodInfos[methodIx].Name.CompareTo("get_Item") != 0
  25.                    && methodInfos[methodIx].Name.CompareTo("Get") != 0
  26.                    && methodInfos[methodIx].Name.CompareTo("get_Count") != 0
  27.                    && methodInfos[methodIx].Name.CompareTo("TryGet") != 0
  28.                    && methodInfos[methodIx].Name.CompareTo("Add") != 0
  29.                    && methodInfos[methodIx].Name.CompareTo("IndexOfKey") != 0
  30.                    && methodInfos[methodIx].Name.CompareTo("ContainsKey") != 0
  31.                    && methodInfos[methodIx].Name.CompareTo("GetControl") != 0
  32.                    && methodInfos[methodIx].Name.CompareTo("InstantiateGUIObject") != 0
  33.                    && methodInfos[methodIx].Name.CompareTo("InstantiateGUIObject_Pre") != 0
  34.                    && methodInfos[methodIx].Name.CompareTo("Swap") != 0
  35.                    && methodInfos[methodIx].Name.CompareTo("Clear") != 0
  36.                    )
  37.                 {
  38.                     methodInfos[methodIx].MethodHandle.GetFunctionPointer();
  39.                 }
  40.             }
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement