public static int sq_contains(IntPtr ob, IntPtr v) {
CLRObject obj = (CLRObject)ManagedType.GetManagedObject(ob);
Type itemType = obj.inst.GetType().GetElementType();
IList items = obj.inst as IList;
object value;
if (!Converter.ToManaged(v, itemType, out value, false)) {
return 0;
}
if (items.Contains(value)) {
return 1;
}
return 0;
}