Replaces types with built-in types.
This commit is contained in:
parent
fee83ce560
commit
22ab83ea9e
98 changed files with 248 additions and 248 deletions
|
|
@ -76,14 +76,14 @@ namespace Server.Misc
|
|||
else
|
||||
keyString = @"SOFTWARE\{0}";
|
||||
|
||||
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( keyString, subName ) ) )
|
||||
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( string.Format( keyString, subName ) ) )
|
||||
{
|
||||
if ( key == null )
|
||||
return null;
|
||||
|
||||
string v = key.GetValue( keyName ) as string;
|
||||
|
||||
if ( String.IsNullOrEmpty( v ) )
|
||||
if ( string.IsNullOrEmpty( v ) )
|
||||
return null;
|
||||
|
||||
if ( keyName == "InstallDir" )
|
||||
|
|
@ -91,7 +91,7 @@ namespace Server.Misc
|
|||
|
||||
v = Path.GetDirectoryName( v );
|
||||
|
||||
if ( String.IsNullOrEmpty( v ) )
|
||||
if ( string.IsNullOrEmpty( v ) )
|
||||
return null;
|
||||
|
||||
return v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue