Do you refactor when you see things like this? Or do you just plug your nose and move on?
public Collection<DataValidationRuleBase> GetFieldValidationRules(String key)
{
Collection<DataValidationRuleBase> found = null;
try
{
this.mRules.TryGetValue(key, out found);
}
catch (ArgumentException ex)
{
//log the error
Log.Error(ExceptionHandling.BuildExceptionMessage(ex));
return null;
}
return found;
}