c# - Is there anything similar to DirectoryInfo for registry paths? (Same functions and attributes) -
due fact i'm using directoryinfo
class every directory path have, decided use in order handle registry paths. mean, registry path nothing other directory path because both divided folders referenced backslashes.
so, if pass string @"hkey_local_machine\hardware\devicemap\scsi\scsi port 0"
new instance dir
of type directoryinfo
, print out dir.root
my output d:\
. according this link, output should hkey_local_machine
. or wrong asserting can handle registry path directory path?
if doesn't work registry paths - there similar directoryinfo registry paths? best if it's contained in netcore app 1.1 framework target framework!
edit: okay, experimented bit , seems directoryinfo
needs drive letter @ beginning of every path or else search directory in applcation folder. directoryinfo.root
returns correct string. question is: there similar directoryinfo registry paths?
Comments
Post a Comment