có ai biết cách gọi một phương thức chung của một lớp cơ sở với CodeDom không?CodeDom - Gọi một phương thức chung
Tôi không có vấn đề gì khi gọi phương thức chuẩn, nhưng tôi không thể tìm thấy giải pháp để gọi chung.
Mã tôi sử dụng để gọi các phương pháp tiêu chuẩn lớp cơ sở getInstance:
CodeAssignStatement assignStatement = new CodeAssignStatement(
new CodeVariableReferenceExpression("instance"),
new CodeMethodInvokeExpression(
new CodeThisReferenceExpression(),
"GetInstance",
new CodeExpression[] { new CodeVariableReferenceExpression("instance") }
));