I need to initialize my object like below:
var obj = new EduBranch {
Id = model.Id,
WorklevelId = model.WorklevelId,
EdulevelId = model.EdulevelId,
Title = model.Title,
StartEduYearId = model.StartEduYearId,
EndEduYearId = model.EndEduYearId,
};
but in CodeDOM I could only find:
var objectCreate1 = new CodeObjectCreateExpression("EduBranch",
new CodeExpression[]{});
and this is using parentheses to initialize instead of brackets. is there a CodeDOM approach for this? ( I already make my code using stringBuilder but I'm looking for a CodeDOM approach ) thanks