public void EmitConstructorBody(TypeBuilder typeBuilder, EmitGenerator gen, int ctorArgumentIndex, ref int memberParameterIndex) { var fieldType = DefineParameterField(typeBuilder, memberParameterIndex); gen.LoadThis(); gen.LoadArgument(ctorArgumentIndex); gen.LoadArrayElement(memberParameterIndex); gen.CastAny(fieldType); gen.StoreField(_paramField); memberParameterIndex += 1; }