LINQ rules!

Here’s an example of a small refactoring I did today using LINQ’s features in C#. I had this method that simply constructs a WHERE clause for a SQL statement using an IList of table prefixes: private string getWhereClauseForTablePrefixes(IList<String> tablePrefixes) { var where = “”; if (tablePrefixes.Count > 0) { where…

Weiterlesen…