Content deleted Content added
→Current Solution: Attempted to wikify the paragraph. May need more improving. |
m →Current solutions: Arr ... why is the name of links the second paramenter? That seems quite counter-intuitive to me. |
||
Line 7:
==Current solutions==
The first option is in principle easier, but it is unfortunately limited by the fact that many classes restricts inheritance of certain members or forbids it completely. This includes sealed class and the different primitive data types in C# such as [[
As an example, consider a need of extending the string class with a new reverse method whose return value was a string with the characters in reversed order. Because the string class is a primitive type, the method would typically be added to a new utility class in a manner not unlike the following:
|