I'm having a problema using Realm for .NET, in Xamarin.
I can add, update and delete objects normally, but likewise java, Realm for .NET doesn't have a copyFromRealm object.
My method just open the realm, select data and I need to handle this object outsite the data layer (i'm using a class for query the data and validate it in another layer).
But even use DeepCloner (nuget), the Realm are throwing an exception accusing that the realm is closed, but I'm closing it using the using() instruction for .NET.
I's it possible copy an object from realm, before it's closed and manipulated that object. I just need to read the data in object, not writing it again to Realm.
using(var realm = Realm.GetInstance(config))
{
var data = realm.All<DadosUsuario>().FirstOrDefault().ShallowCopy();
}