Using core service want to get only ther latest version of all the items in tridion.
I have tried in this way:-
if (itemType.Equals("Folder"))
{
type = ItemType.Folder;
}
if (itemType.Equals("StructureGroup"))
{
type = ItemType.StructureGroup;
}
VersionedItemData verinfo=csClient.Read(tcmuri, new ReadOptions()) as VersionedItemdata
But here i'm unalbe to filter on the ItemTypes.
If any other approaches to get the latest version info please let me know.