grijjy / GrijjyFoundation

Foundation classes used by other Grijjy repositories
Other
247 stars 88 forks source link

TgoBsonDocument to TValue #47

Closed dbcto closed 2 years ago

dbcto commented 2 years ago

Hi,

Is there a possibility to create a Tvalue from a TgoBsonDocument?

This one is not working and results in a empty TgoBsonDocument record: TValue.Make(@BsonDoc,TypeInfo(TgoBsonDocument),RttiValue); Or RttiValue.From<TgoBsonDocument>(BsonDoc);

The other way is working: RttiValue.AsType<TgoBsonDocument>

Best regards Dennis