Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有字符串变量,这里如何动态检查名称,因为字符串名称的值是动态的。
string name; if(studentname==.............) { }
String name; if(studentname==name) { }
您可以使用
String.Compare(姓名,学生姓名)
资源