Ejemplo n.º 1
0
		public override void Emit(IMemberEmitter member, ILGenerator gen)
		{
			var ci = exceptionType.GetConstructor(new[] { typeof(String) });
			var constRef = new ConstReference(errorMessage);

			var creationStmt = new NewInstanceExpression(ci, constRef.ToExpression());

			creationStmt.Emit(member, gen);

			gen.Emit(OpCodes.Throw);
		}
		public LoadArrayElementExpression(ConstReference index, Reference arrayReference, Type returnType)
		{
			this.index = index;
			this.arrayReference = arrayReference;
			this.returnType = returnType;
		}
		public LoadRefArrayElementExpression(ConstReference index, Reference arrayReference)
		{
			this.index = index;
			this.arrayReference = arrayReference;
		}