Hi Idior,
The above code is correct, note that one is "item" and the other is "project", so the project could be null in the first evaluation due to that item could be a SolutionFolder instead a project. Anyway tell me if you're getting any particular issue/exception with that helper method.
hth jose.
|