2

I know that Resharper can code-gen a comparer implementation (and does a really great job of it), but I'm looking for a free way to do the same. I've got a customer who is not likely to invest 250$ per developer, but the developers would still like to be able to create comparers in seconds, rather than minutes (or more, depending on the complexity of the objects).

I'd be looking for a VSIX extension or an add-in of sorts.

Assaf Stone
  • 6,309
  • 1
  • 34
  • 43
  • For my quick-tools, I have a WinForms Form with a large multiline textbox and do my code-generation in there. Then I just copy 'n' paste back into VS. It isn't pretty, but it works and takes a fraction of time as VS integration would do (and will work with any version of VS too). – Dai Jan 20 '13 at 08:58
  • It might be off-topic, but I've never understood how these arguments hold any water. Resharper can easily save developers 10-20+ minutes "a day". How much does this client pay each developer and for how long? A Resharper licence generally pays for itself in 1-2 months. So, my advice is let the developers do everything manually because it's somehow "free", then maybe convince the customer that for the cost of 1-2 extra day's wage per developer, they'll get 1+ months worth of extra features completed. – Steve Py Jan 20 '13 at 12:22

2 Answers2

0

enter image description here enter image description here

Visual Studio (2008/2010) has its own i guess ?

Parimal Raj
  • 20,189
  • 9
  • 73
  • 110
0

You can utilize snippet feature of VS. You can make your own custom one. Here's one for IEquatable<T>. You can easily tailor it for IComparable<T>. Just ensure to place the .snippet file at appropriate place. Perhaps ~home\Visual Studio XXX\Code Snippets\Visual C#\My Code Snippets\

nawfal
  • 70,104
  • 56
  • 326
  • 368