public override void Emit(IMemberEmitter member, ILGenerator gen)
{
foreach(Expression exp in arguments)
{
exp.Emit(member, gen);
}
if (constructor == null)
{
constructor = type.GetConstructor(constructor_args);
}
if (constructor == null)
{
throw new ApplicationException("Could not find constructor matching specified arguments");
}
gen.Emit(OpCodes.Newobj, constructor);
}
}