Property | Value |
---|---|
Id | RCS1235 |
Category | Performance |
Severity | Info |
string.Compare(x, y, StringComparison.Ordinal) // RCS1235
string.CompareOrdinal(x, y)
string.Compare(x, y, StringComparison.CurrentCulture) == 0 // RCS1235
string.Equals(x, y, StringComparison.CurrentCulture)
string.Join("", x, z, y) // RCS1235
string.Concat(x, y, z)
Debug.Assert(false, "message"); // RCS1235
Debug.Fail("message");
if (dic.ContainsKey(key)) // RCS1235
{
dic[key] = value;
}
else
{
dic.Add(key, value);
}
dic[key] = value;
(Generated with DotMarkdown)