C#字符串比较

正确写法1
  bool bTemplatecontent2 = strtemplateContentInDB.Equals(strTemplateContentInDesignPanel, StringComparison.Ordinal);

 bTemplatecontent2 = true;
正确写法2
bool bEqual = String.Equals(strtemplateContentInDB, strTemplateContentInDesignPanel, StringComparison.Ordinal);
bEqual = true;

 

你可能感兴趣的:(字符串)