At the bottom of p262, you've talked about creating an extension method with same signature as an existing static method of the extended type. e.g extension method for IsNullOrEmpty on the string extended type.
Tried it, and it works fine, but worth knowing that VS Intellisence gets slightly thrown when displaying the available methods dropdown listbox and it displays the existing static method (old signature and icon) instead of the newly created extension method. So unless you created the extension method yourself, it could cause confusion as you may (incorrectly) think its an instance method, and also the old signature doesn't make sence either when applied to a variable of the type.
Guess this is a VS foible that someone should tell them about.
|