Remove methods for constructor in ReflectionHelper.

This commit is contained in:
2023-04-08 13:36:52 +08:00
parent 2221658e7a
commit 8907dd19b0
6 changed files with 9 additions and 25 deletions

View File

@@ -228,7 +228,7 @@ namespace Cryville.Common.Pdt {
if (!flag) throw new FormatException("Format directive not found");
}
object InterpretObject(Type type) {
var result = ReflectionHelper.InvokeEmptyConstructor(type);
var result = Activator.CreateInstance(type);
bool pcflag = PairCollection.IsPairCollection(type);
while (true) {
try { ws(); }