Exemple #1
0
 /// <summary>
 /// Starts a catch block
 /// </summary>
 /// <param name="ExceptionType">Exception type to catch</param>
 /// <returns>The resulting catch block</returns>
 public virtual Utilities.Reflection.Emit.Commands.Catch Catch(Type ExceptionType)
 {
     Utilities.Reflection.Emit.Commands.Catch TempCommand = new Utilities.Reflection.Emit.Commands.Catch(ExceptionType);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     TempCommand.Exception = CreateLocal("ExceptionLocal" + ObjectCounter.ToString(CultureInfo.InvariantCulture), ExceptionType);
     TempCommand.Exception.Save(Generator);
     ++ObjectCounter;
     return(TempCommand);
 }
 public virtual Utilities.Reflection.Emit.Commands.Catch Catch(Type ExceptionType)
 {
     Utilities.Reflection.Emit.Commands.Catch TempCommand = new Utilities.Reflection.Emit.Commands.Catch(ExceptionType);
     TempCommand.Setup();
     Commands.Add(TempCommand);
     TempCommand.Exception = CreateLocal("ExceptionLocal"+ObjectCounter.ToString(), ExceptionType);
     TempCommand.Exception.Save(Generator);
     ++ObjectCounter;
     return TempCommand;
 }