Ejemplo n.º 1
0
		void LoadEngine ()
		{
			if (!gotEngine) {
				gotEngine = true;
				var ob = node.GetInstance ();
				#pragma warning disable 618
				var legacyEngine = ob as IDebuggerEngine;
				#pragma warning restore 618
				if (legacyEngine != null)
					engine = new LegacyDebuggerEngineBackend (legacyEngine);
				else
					engine = (DebuggerEngineBackend) node.GetInstance ();
			}
		}
Ejemplo n.º 2
0
 void LoadEngine()
 {
     if (!gotEngine)
     {
         gotEngine = true;
         var ob = node.GetInstance();
                         #pragma warning disable 618
         var legacyEngine = ob as IDebuggerEngine;
                         #pragma warning restore 618
         if (legacyEngine != null)
         {
             engine = new LegacyDebuggerEngineBackend(legacyEngine);
         }
         else
         {
             engine = (DebuggerEngineBackend)node.GetInstance();
         }
     }
 }