Beispiel #1
0
		private Expression ParseNewObjectCreation (Instruction inst)
		{
			Method method = GetMethodFromMethodCallInstruction (inst);
			int count = method.Parameters.Count;
			List<Expression> arguments;
			{
				var expressions = new Expression[count];
				for (int index = count - 1; index >= 0; index--)
					expressions [index] = PopOperand ();

				arguments = new List<Expression> (expressions);
			}

			var construct = new Construct (new MemberBinding (null, method), arguments) {Type = method.DeclaringType};

			return construct;
		}