If you are new to developing SharePoint applications, or would like to have some examples available, head on over to http://code.msdn.microsoft.com/SharePoint-2010-101-Code-da251182 and download the Sample Pack.

“Each code sample is part of the SharePoint 2010 101 code samples project. These samples are provided so that you can incorporate them directly in your code. Each code sample consists of a standalone project created in Microsoft Visual Studio 2010”

Happy Coding!