Open
Description
S4057 is processing all the object creations in a source file.
For each object creation, the rule is querying the semantic model.
Based on the fact that the rule is interested only in two particular types, System.Data.DataTable
and System.Data.DataSet
, it would be better to first filter the object creation on a syntax level. Then if they belong to one of those types, the semantic model can be called.
This change will increase the performance of the rule.
Activity