GetTextBlobChild not resolving type correctly

Issue #11 resolved
Martin Kirsten created an issue

Hi

I recently upgraded to the latest version (v1.1.0, commit 09699dc) of SQLite-Net Extensions, and now the following issue is occurring (I am building from source because I am using the MvvmCross version):

GetTextBlobChild() method of the TextBlobOperations class is resolving my object's type as System.Object and not its actual type, and is therefore unable to retrieve the text property for TextBlob. The line causing the issue is:

var type = typeof(T);

this is easily fixed by changing the line to:

var type = element.GetType();

Since I am building from source, I have fixed this for now in my copy - could you please propagate this if you agree with the fix?

Btw - any chance you will be releasing the MvvmCross version as a NuGet package?

Thanks for this library - it is really helping me a lot!

Comments (4)

  1. Guillermo Gutiérrez

    Thanks for your feedback. I recently removed unused generics and all the typeof calls were replaced with GetType, but it seems that this one slipped in. It's fixed now.

    I'll try to prepare a NuGet package with MvvmCross version, I'm facing some problems with multi-project directories and NuGet with the latest Xamarin Studio, but shouldn't take too much.

  2. Log in to comment