Inheritance: TypeReference
コード例 #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);
		}
コード例 #2
0
 public LoadArrayElementExpression(ConstReference index, Reference arrayReference, Type returnType)
 {
     this.index = index;
     this.arrayReference = arrayReference;
     this.returnType = returnType;
 }
コード例 #3
0
 public LoadArrayElementExpression(ConstReference index, Reference arrayReference, Type returnType)
 {
     this.index          = index;
     this.arrayReference = arrayReference;
     this.returnType     = returnType;
 }
コード例 #4
0
		public LoadRefArrayElementExpression(ConstReference index, Reference arrayReference)
		{
			this.index = index;
			this.arrayReference = arrayReference;
		}
コード例 #5
0
 public LoadRefArrayElementExpression(ConstReference index, Reference arrayReference)
 {
     this.index          = index;
     this.arrayReference = arrayReference;
 }