SPListItemCollection to Linq List
This time you code gives us extension to SPListItemCollection object.
If you want to work with the object of SPListItemCollection using linq - The following code can help
Yours...
Roi
SPListItemCollection to Linq List
If you want to work with the object of SPListItemCollection using linq - The following code can help
public static List<SPListItem> ToList(this SPListItemCollection items)
{
IEnumerable<SPListItem> itemsContiens = items.OfType<SPListItem>();
return itemsContiens.ToList<SPListItem>();
}
{
IEnumerable<SPListItem> itemsContiens = items.OfType<SPListItem>();
return itemsContiens.ToList<SPListItem>();
}
Yours...
Roi
Great! Thanks a Lot!
ReplyDeleteThanks for sharing
ReplyDelete