/// <summary> /// Checks whether this object's Properties contains the string passed in the argument. /// </summary> /// <param name="token">string used to make comparison</param> /// <returns>Returns true if any of the Properties contains the token, false otherwise</returns> public bool ContainsToken(string token) { if (FirstName.ToLower().Contains(token.ToLower())) return true; if (LastName.ToLower().Contains(token.ToLower())) return true; if (Bio.ToLower().Contains(token.ToLower())) return true; return false; }