In this post I write some examples of C# coding for SharePoint list items. These methods are rather fast and it's very actual for SharePoint.

It’s a method to return SPListItemCollection. I have extracted it just to easier modify code.


I call up the method and get SPListItemCollection. After that I want to convert it to datatable. Don’t forget to add using System.Data to your code.


I have class CEvent


And want to convert my datatable to List<CEvent>. Here’s one of the ways to do it.