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;
            }
        }
Beispiel #2
0
 protected override IEnumerable <IShellNamespaceItem> GetChildren(ShellNamespaceEnumerationFlags flags)
 {
     if (flags.HasFlag(ShellNamespaceEnumerationFlags.Folders))
     {
         foreach (var hive in hives)
         {
             yield return(hive);
         }
     }
 }
Beispiel #3
0
        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;
 }