Closed vshapenko closed 5 years ago
According to https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/FSharpBsonMapper.fs#L32 https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/Bson.fs#L160 Type.GUID is used to determine if types are equal, but this does not work in Xamarin.Android. Looks like these properties are always same. Looks like Type.FullName is more safe in case of determining type equality
According to https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/FSharpBsonMapper.fs#L32 https://github.com/Zaid-Ajaj/LiteDB.FSharp/blob/master/LiteDB.FSharp/Bson.fs#L160 Type.GUID is used to determine if types are equal, but this does not work in Xamarin.Android. Looks like these properties are always same. Looks like Type.FullName is more safe in case of determining type equality