I'm trying to replicate DatabaseUtils.getTypeOfObject and am running into
trouble telling it the object is a byte[].
The code in the android source is:
} else if (obj instanceof byte[]) {
return Cursor.FIELD_TYPE_BLOB;
"obj is byte[]" doesn't work so I tried:
Type type = obj.GetType();
if (type.IsArray && type.GetElementType() == typeof(Java.Lang.Byte))
return FieldType.Blob;
However type.IsArray fails.
Jeremy
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid