I\'m using common database code between a web and WinForms app. I\'ve researched and worked out how to encrypt the connection strings section of a web.config and app.config file. That part is ok. I ha
Is there anyway this code can be refactored? The only difference is the order by part. Idealy I\'d like to use a delegate/lambda expression so the code is reusable but I don\'t know how to conditiona