C# 字符串中是否包含可能性?

23 浏览
0 Comments

C# 字符串中是否包含可能性?

我想知道一个字符串不包含两个字符串的情况。例如:

string firstString = "pineapple"
string secondString = "mango"
string compareString = "The wheels on the bus go round and round"

所以,我想知道当第一个字符串和第二个字符串不在compareString中时怎么办?

如何实现?

0