Currently i am creating an Export and Import Tool for SharePoint 2010 to 2013.
The Export Tool exports a whole list or DocumentLibrary to a File. In my DocumentLibrary i have serveral Document Sets.
In my Code i use this to make a distinction between a Folder and a Document Set:
if (ListItems.ProgId == "SharePoint.DocumentSet")
This works for now but it feels like this solution is unclean....
Is There a better way to do this?