Пример #1
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;
            }
        }
Пример #2
0
 protected override IEnumerable <IShellNamespaceItem> GetChildren(ShellNamespaceEnumerationFlags flags)
 {
     if (flags.HasFlag(ShellNamespaceEnumerationFlags.Folders))
     {
         foreach (var hive in hives)
         {
             yield return(hive);
         }
     }
 }
Пример #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);
                }
            }
        }
Пример #4
0
 protected override IEnumerable<IShellNamespaceItem> GetChildren(ShellNamespaceEnumerationFlags flags)
 {
     if(flags.HasFlag(ShellNamespaceEnumerationFlags.Folders))
         foreach (var hive in hives)
             yield return hive;
 }