Пример #1
0
 public static void InjectCommonApi(this IVirtualMachine virtualMachine, GamePatch gamePatch)
 {
     foreach (var type in typeof(VirtualMachineExtensions).Assembly.GetTypes())
     {
         if (type.Name.EndsWith("Api", StringComparison.Ordinal))
         {
             virtualMachine.InjectMembers(gamePatch, type);
         }
     }
 }