public HleRegistryKeyNode GetKeyByName(string Name) { try { return HleRegistryKeyNodeList.Single(Item => Item.Value.Name == Name).Value; } catch (InvalidOperationException) { throw(new KeyNotFoundException("Can't find key '" + Name + "'")); } }