Content deleted Content added
→Problem: Wikified the paragraph. |
m →Problem: Fixed a link. |
||
Line 2:
One of the features of [[C-Sharp|C# 3.0]]
==Problem==
Normally, in a situation where it is necessary to add more functionality to a class - for instance a new method - it would simply be a matter of modifying the class' source code and recompiling the binaries with these new changes to make this effect. However, in some cases, especially when it comes to classes that are build-in into the .NET-framework or reside in third-party [[
# The first option is to inherit the class and then add the functionality.
# The second option is to make a new, separate class and add a static method that takes an object of the class type and return a new object with the modification of choice.
|