Microsoft.JScript.Vsa.VsaEngine.CreateShutdownIL C# (CSharp) Method

CreateShutdownIL() private method

private CreateShutdownIL ( ILGenerator il ) : void
il System.Reflection.Emit.ILGenerator
return void
      private void CreateShutdownIL(ILGenerator il){
        // release references to global instances
        foreach (Object item in this.vsaItems){
          if (item is VsaHostObject){
            il.Emit(OpCodes.Ldnull); 
            il.Emit(OpCodes.Stsfld, ((VsaHostObject)item).Field);
          }
        }
        il.Emit(OpCodes.Ret);
      }