private bool CanRecurseInto(uint item) { object propertyValue; int result = hierarchy.GetProperty(item, HasEnumerationSideEffects, out propertyValue); if (result == Ok && propertyValue is bool) return !(bool)propertyValue; return true; }