Object Model

Accessing Lists through Sharepoint Object model

Is accessing the list taking more time…
Consider the following while accessing the list  through Object model

SPWeb.GetList(string url)
In this case, first it gets the list GUID from the url(database hit), then it loads the Meta data for that specific list.
SPWeb.Lists[“name”]
This method loads the meta-data information of the all lists for the SPWeb object under consideration. and [...]


Understand Sharepoint using Dot Net Reflector

Using .NET Reflector, you can browse the classes and methods of an assembly, you can examine the Microsoft intermediate language (MSIL) generated by these classes and methods, and you can decompile the classes and methods and see the equivalent in C# or Visual Basic .NET.

Dot Net Reflector Can be used for the following in SharePoint [...]


Sharepoint Object Model Best Practices

Follow the below best practices while doing custom coding using sharepoint object model. I found these articles very useful.
1) Best Practices: Common Coding Issues When Using the SharePoint Object Model
http://msdn.microsoft.com/en-us/library/bb687949.aspx
2) Best Practices: Using Disposable Windows SharePoint Services Objects
http://msdn2.microsoft.com/en-us/library/ms473633.aspx