Home > Back-end >  C # to judge the value of the string?
C # to judge the value of the string?

Time:11-14

For the first time contact with c #
Var str1=dt. Data [0]. Ts//this is a string value is 30
If I should how to judge the str1 30
{if (str1=="30")
//this judgment error!
}

CodePudding user response:

String judgment of equality is not the case, want to use the function
  • Related