Fixes implicit array initializers
This commit is contained in:
parent
7d3a0ca265
commit
fee83ce560
189 changed files with 440 additions and 808 deletions
|
|
@ -673,7 +673,7 @@ namespace Server.Commands
|
|||
return type.IsDefined( m_ParsableType, false );
|
||||
}
|
||||
|
||||
private static Type[] m_ParseTypes = new[]{ typeof( string ) };
|
||||
private static Type[] m_ParseTypes = { typeof( string ) };
|
||||
private static object[] m_ParseArgs = new object[1];
|
||||
|
||||
public static object ParseParsable( Type type, string value )
|
||||
|
|
@ -685,8 +685,7 @@ namespace Server.Commands
|
|||
return method.Invoke( null, m_ParseArgs );
|
||||
}
|
||||
|
||||
private static Type[] m_SignedNumerics = new[]
|
||||
{
|
||||
private static Type[] m_SignedNumerics = {
|
||||
typeof( Int64 ),
|
||||
typeof( Int32 ),
|
||||
typeof( Int16 ),
|
||||
|
|
@ -702,8 +701,7 @@ namespace Server.Commands
|
|||
return false;
|
||||
}
|
||||
|
||||
private static Type[] m_UnsignedNumerics = new[]
|
||||
{
|
||||
private static Type[] m_UnsignedNumerics = {
|
||||
typeof( UInt64 ),
|
||||
typeof( UInt32 ),
|
||||
typeof( UInt16 ),
|
||||
|
|
|
|||
|
|
@ -248,8 +248,7 @@ namespace Server.Commands
|
|||
|
||||
#region GetPair
|
||||
|
||||
private static string[,] m_Aliases = new[,]
|
||||
{
|
||||
private static string[,] m_Aliases = {
|
||||
{ "System.Object", "<font color=\"blue\">object</font>" },
|
||||
{ "System.String", "<font color=\"blue\">string</font>" },
|
||||
{ "System.Boolean", "<font color=\"blue\">bool</font>" },
|
||||
|
|
@ -1947,8 +1946,7 @@ namespace Server.Commands
|
|||
|
||||
private const string HtmlNewLine = " ";
|
||||
|
||||
private static object[,] m_Tooltips = new object[,]
|
||||
{
|
||||
private static object[,] m_Tooltips = {
|
||||
{ typeof( Byte ), "Numeric value in the range from 0 to 255, inclusive." },
|
||||
{ typeof( SByte ), "Numeric value in the range from negative 128 to positive 127, inclusive." },
|
||||
{ typeof( UInt16 ), "Numeric value in the range from 0 to 65,535, inclusive." },
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ namespace Server.Commands
|
|||
}
|
||||
}
|
||||
|
||||
private static char[] m_NotSafe = new[]{ '\\', '/', ':', '*', '?', '"', '<', '>', '|' };
|
||||
private static char[] m_NotSafe = { '\\', '/', ':', '*', '?', '"', '<', '>', '|' };
|
||||
|
||||
public static void AppendPath( ref string path, string toAppend )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -240,8 +240,7 @@ namespace Server.Commands
|
|||
{
|
||||
using ( StreamWriter op = new StreamWriter( "expandedItems.log", true ) )
|
||||
{
|
||||
string[] names = new[]
|
||||
{
|
||||
string[] names = {
|
||||
"Name",
|
||||
"Items",
|
||||
"Bounce",
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ namespace Server.Commands
|
|||
return ( t == typeofTimeSpan || t.IsDefined( typeofParsable, false ) );
|
||||
}
|
||||
|
||||
private static Type[] m_ParseTypes = new[]{ typeof( string ) };
|
||||
private static Type[] m_ParseTypes = { typeof( string ) };
|
||||
private static object[] m_ParseParams = new object[1];
|
||||
|
||||
private static object Parse( object o, Type t, string value )
|
||||
|
|
@ -408,8 +408,7 @@ namespace Server.Commands
|
|||
return method.Invoke( o, m_ParseParams );
|
||||
}
|
||||
|
||||
private static Type[] m_NumericTypes = new[]
|
||||
{
|
||||
private static Type[] m_NumericTypes = {
|
||||
typeof( Byte ), typeof( SByte ),
|
||||
typeof( Int16 ), typeof( UInt16 ),
|
||||
typeof( Int32 ), typeof( UInt32 ),
|
||||
|
|
|
|||
|
|
@ -60,12 +60,12 @@ namespace Server.Commands
|
|||
}
|
||||
}
|
||||
|
||||
Map[] brit = new[]{ Map.Felucca, Map.Trammel };
|
||||
Map[] fel = new[]{ Map.Felucca };
|
||||
Map[] tram = new[]{ Map.Trammel };
|
||||
Map[] ilsh = new[]{ Map.Ilshenar };
|
||||
Map[] malas = new[]{ Map.Malas };
|
||||
Map[] tokuno = new[]{ Map.Tokuno };
|
||||
Map[] brit = { Map.Felucca, Map.Trammel };
|
||||
Map[] fel = { Map.Felucca };
|
||||
Map[] tram = { Map.Trammel };
|
||||
Map[] ilsh = { Map.Ilshenar };
|
||||
Map[] malas = { Map.Malas };
|
||||
Map[] tokuno = { Map.Tokuno };
|
||||
|
||||
for ( int i = 0; i < list.Count; ++i )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue