Replaces types with built-in types.

This commit is contained in:
Kamron Batman 2018-09-14 13:22:16 -07:00
parent fee83ce560
commit 22ab83ea9e
98 changed files with 248 additions and 248 deletions

View file

@ -333,7 +333,7 @@ namespace Server.Network {
}
public void WriteConsole( string format, params object[] args ) {
WriteConsole( String.Format( format, args ) );
WriteConsole( string.Format( format, args ) );
}
public void AddMenu( IMenu menu ) {

View file

@ -222,7 +222,7 @@ namespace Server.Network
if ( m_Index >= m_Size )
{
m_Index += fixedLength;
return String.Empty;
return string.Empty;
}
int bound = m_Index + fixedLength;
@ -270,7 +270,7 @@ namespace Server.Network
public string ReadUTF8StringSafe()
{
if ( m_Index >= m_Size )
return String.Empty;
return string.Empty;
int count = 0;
int index = m_Index;
@ -310,7 +310,7 @@ namespace Server.Network
public string ReadUTF8String()
{
if ( m_Index >= m_Size )
return String.Empty;
return string.Empty;
int count = 0;
int index = m_Index;

View file

@ -203,7 +203,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteAsciiFixed() with null value" );
value = String.Empty;
value = string.Empty;
}
int length = value.Length;
@ -239,7 +239,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteAsciiNull() with null value" );
value = String.Empty;
value = string.Empty;
}
int length = value.Length;
@ -263,7 +263,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteLittleUniNull() with null value" );
value = String.Empty;
value = string.Empty;
}
int length = value.Length;
@ -290,7 +290,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteLittleUniFixed() with null value" );
value = String.Empty;
value = string.Empty;
}
size *= 2;
@ -330,7 +330,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteBigUniNull() with null value" );
value = String.Empty;
value = string.Empty;
}
int length = value.Length;
@ -357,7 +357,7 @@ namespace Server.Network
if ( value == null )
{
Console.WriteLine( "Network: Attempted to WriteBigUniFixed() with null value" );
value = String.Empty;
value = string.Empty;
}
size *= 2;

View file

@ -2435,7 +2435,7 @@ namespace Server.Network
string v = strings[i];
if ( v == null )
v = String.Empty;
v = string.Empty;
m_Strings.Write( (ushort) v.Length );
m_Strings.WriteBigUniFixed( v, v.Length );
@ -2593,7 +2593,7 @@ namespace Server.Network
string v = text[i];
if ( v == null )
v = String.Empty;
v = string.Empty;
int length = (ushort) v.Length;