As a young (ish) developer in a solo store, I am very grateful to Resharper as a training tool and mini QA. As the saying goes, can Resharper violate your code in some cases (possibly an edge)?
For example (see below), R # constantly assumes that my →
this. is redundant and catch is redundant
There are other examples, but I do not ask about a specific instance as much as the whole.
Has anyone had an R # break suggestion for their code? If so, then what are they and the mabs for me most important; What can I look for to understand if this really gives me bad advice?
private void LoadMyForm(DataRow row)
{
try
{
this.tbxFirstName.Text = row["FirstName"].ToString();
this.tbxLastName.Text = row["LastName"].ToString();
tbxMiddleName.Text = row["MiddleName"].ToString();
tbxPersonID.Text = row["PersonID"].ToString();
tbxSSN.Text = row["SSN"].ToString();
tbxEmailAddress.Text = row["EmailAddress"].ToString();
}
catch (Exception)
{
throw;
}
}
source
share