string fullName = "John Doe"; bool nameInFullName = fullName.Contains("John"); // nameInFullName is true