public IEnumerable <Tuple <string, RegistryValueKind> > GetValueInfos(string registryKey) { IEnumerable <Tuple <string, RegistryValueKind> > valueInfos; using (IDistributedStoreKey distributedStoreKey = this.OpenRegKey(registryKey, false, false)) { valueInfos = distributedStoreKey.GetValueInfos(null); } return(valueInfos); }