17
17
18
18
namespace Microsoft . PowerShell . Commands
19
19
{
20
+
21
+ #nullable enable
20
22
internal interface IRegistryWrapper
21
23
{
22
- void SetValue ( string name , object value ) ;
24
+ void SetValue ( string ? name , object value ) ;
23
25
24
- void SetValue ( string name , object value , RegistryValueKind valueKind ) ;
26
+ void SetValue ( string ? name , object value , RegistryValueKind valueKind ) ;
25
27
26
28
string [ ] GetValueNames ( ) ;
27
29
8000
28
30
void DeleteValue ( string name ) ;
29
31
30
32
string [ ] GetSubKeyNames ( ) ;
31
33
32
- IRegistryWrapper CreateSubKey ( string subkey ) ;
34
+ IRegistryWrapper ? CreateSubKey ( string subkey ) ;
33
35
34
- IRegistryWrapper OpenSubKey ( string name , bool writable ) ;
36
+ IRegistryWrapper ? OpenSubKey ( string name , bool writable ) ;
35
37
36
38
void DeleteSubKeyTree ( string subkey ) ;
37
39
38
- object GetValue ( string name ) ;
40
+ object ? GetValue ( string ? name ) ;
39
41
40
- object GetValue ( string name , object defaultValue , RegistryValueOptions options ) ;
42
+ object ? GetValue ( string ? name , object ? defaultValue , RegistryValueOptions options ) ;
41
43
42
- RegistryValueKind GetValueKind ( string name ) ;
44
+ RegistryValueKind GetValueKind ( string ? name ) ;
43
45
44
46
object RegistryKey { get ; }
45
47
@@ -53,6 +55,7 @@ internal interface IRegistryWrapper
53
55
54
56
int SubKeyCount { get ; }
55
57
}
58
+ #nullable restore
56
59
57
60
internal static class RegistryWrapperUtils
58
61
{
0 commit comments