This project has moved and is read-only. For the latest updates, please go here.

RootWorkItem attribute within WorkItem

Jun 21, 2008 at 12:23 AM
Can anybody help me understand why there is a "RootWorkItem" member in WorkItem class?
I mean correct me if I am wrong but RootWorkItem is a special case of WorkItem, right?
Jul 11, 2008 at 11:02 AM
Edited Jul 12, 2008 at 3:40 AM
I must admit, I don't think about or use the RootWorkItem much.
The only important thing, I reckon, is that it's the top of a tree (hierarchy) of WorkItems.
It's the ultimate parent of every WorkItem that you create.
This can be used to your advantage - you could iterate through all the WorkItems to find a particular one, for example.
Or search all WorkItems to find some SmartPart, that you're interested in Closing.
The WorkItems may know nothing about each other, but they are ultimately all part of the same family tree.