摘要:
type TFoo = class public function Object2Json<T>(o: T): string; function Json2Object<T>(j: string): T; end; implementationfunction TFoo.Json2Object<T>(j: string): T;var ctx: TSuperRttiContext;begin ctx := TSuperRttiContext.Create; try Result := ctx.AsType<T>(SO[j]); finally c 阅读全文