/// <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(string val)
 {
     foreach (NSObject o in dict.Values)
     {
         if (o.GetType().Equals(typeof(NSString)))
         {
             NSString str = (NSString)o;
             if (str.GetContent().Equals(val))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
示例#2
0
 /// <summary>
 /// Appends a string to this string.
 /// </summary>
 /// <param name="s">The string to append.</param>
 public void Append(NSString s)
 {
     Append(s.GetContent());
 }
示例#3
0
 /// <summary>
 /// Prepends a string to this string.
 /// </summary>
 /// <param name="s">The string to prepend.</param>
 public void Prepend(NSString s)
 {
     Prepend(s.GetContent());
 }