Beispiel #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 ();
			}
		}
 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();
         }
     }
 }