Cache to Mobile: Xamarin Forms, .NET Standard, JSON and all the things ...
Dear Colleagues and Friends,
is there any indication that the .NET object representation of Cache objects (i.e. InterSystems.Data.CacheClient.dll) complies with .NET Standard? I'm planning to extend our existing .NET client/server solution with a mobile option by Xamarin Forms and can't find any significant hints in the internet.
I'm just fooling around a bit and made some expreiments with a REST API and a generic object-to-JSON tier:
ClassMethod ObjectFromObject(o As %RegisteredObject, class As %String = "", package As %String = "") As %DynamicObject
i class = "" s class = o.%ClassName()
i package = "" s package = o.%PackageName()
s type = package_"."_class
s dyn = ##class(%DynamicObject).%New()
f i=1:1:def.Properties.Count() d
.s name = def.Properties.GetAt(i).Name, ltd = name_"LogicalToDisplay"
.s value = $method(o, ltd, $property(o, name))
.d dyn.%Set(name, value)
I hope for any instructive comment.
Thanks and regards