views:

52

answers:

1

Some .net-framework interfaces and attributes become obsolete and deprecated since new framework version appears. I am warned that such code may be removed or become unpredictable in next versions but have you ever faced the situation when you were forced to refactor code because code came uncompilable or start to behave weird? What was you biggest refactoring?

Or maybe Microsoft always continued to support api's once they were published?

Thank you in advance!

+1  A: 

Practically no refactoring at all. When converting from .NET 1.1 to 2.0, there was a lot of stuff that was automatically generated for compatibility, which I took out again because it wasn't necessary. Some code could be improved when generics was introduced, but there have been almost no issues with existing code breaking for me.

Thorarin
Yes, generics, linq, vars, auto-properties ... can minimize oldschool code and I had to refactor, though it wasn't necessary. But in my experience code was always stable and compatible with new .net framework versions.
Andrew Florko