/// <summary> /// Checks whether a given value is contained in this dictionary. /// </summary> /// <param name="val">The value that will be searched for.</param> /// <returns>Whether the key is contained in this dictionary.</returns> public bool ContainsValue(bool val) { foreach (NSObject o in dict.Values) { if (o.GetType().Equals(typeof(NSNumber))) { NSNumber num = (NSNumber)o; if (num.isBoolean() && num.ToBool() == val) { return(true); } } } return(false); }
internal static bool IsSerializationPrimitive(NSNumber n) { return(n.isBoolean()); }