3 Apr
2008

Exploring Extension Methods in .Net 3.5

Category:UncategorizedTag: , , :

Finding extension methods in C# 3.5 is not as intuitive as it should be. Just walking the inheritance chain will not show you all the goodies. There are a few steps using object browser that will make this easier.

  • Pull up object browser, set Browse to only show 3.5. (Will not work if you set to all components)
  • Set the filter to ‘Show Extension Members’

image

  • Select a type in the browser
  • In the right pane you will see an ‘Extension Members’ folder
  • Now you can browse the public type extensions

image