IEnumerable<IShellNamespaceItem> IShellNamespaceFolder.GetChildren(ShellNamespaceEnumerationFlags flags) { // If we've been asked for folders, return all subkeys. if (flags.HasFlag(ShellNamespaceEnumerationFlags.Folders)) { foreach (var childKey in lazyChildKeys.Value) yield return childKey; } // If we've been asked for items, return all items. if (flags.HasFlag(ShellNamespaceEnumerationFlags.Items)) { foreach (var childAttribute in lazyAttributes.Value) yield return childAttribute; } }
protected override IEnumerable <IShellNamespaceItem> GetChildren(ShellNamespaceEnumerationFlags flags) { if (flags.HasFlag(ShellNamespaceEnumerationFlags.Folders)) { foreach (var hive in hives) { yield return(hive); } } }
IEnumerable <IShellNamespaceItem> IShellNamespaceFolder.GetChildren(ShellNamespaceEnumerationFlags flags) { // If we've been asked for folders, return all subkeys. if (flags.HasFlag(ShellNamespaceEnumerationFlags.Folders)) { foreach (var childKey in lazyChildKeys.Value) { yield return(childKey); } } // If we've been asked for items, return all items. if (flags.HasFlag(ShellNamespaceEnumerationFlags.Items)) { foreach (var childAttribute in lazyAttributes.Value) { yield return(childAttribute); } } }
protected override IEnumerable<IShellNamespaceItem> GetChildren(ShellNamespaceEnumerationFlags flags) { if(flags.HasFlag(ShellNamespaceEnumerationFlags.Folders)) foreach (var hive in hives) yield return hive; }