Re: [mono-android] How to tell is Java.Lang.Object is byte[]

2012-12-17 Thread Jonathan Pryor
On Dec 17, 2012, at 1:45 PM, Jeremy A. Kolb - ARA/NED wrote: > I’m trying to replicate DatabaseUtils.getTypeOfObject and am running into > trouble telling it the object is a byte[]. I assume you have: Java.Lang.Object obj = ...; If so, the easiest way to check that is: if (obj

[mono-android] How to tell is Java.Lang.Object is byte[]

2012-12-17 Thread Jeremy A. Kolb - ARA/NED
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.GetTyp