You want to create a webpart for SharePoint 2010 but you don’t know which class to use ?
I was using those way :
- Search on google and find examples
- Randomly type in Visual studio the webpart name, example : content, and it would propose me the classes ContentByQuery…
- Create the webpart by interface in SharePoint 2010
This will export a .webpart
- Now edit it with a text editor
Hope that helped,