Formatting #2 (#59)

This commit is contained in:
Kamron Batman 2019-10-05 00:37:03 -07:00 committed by GitHub
parent 096d39609e
commit 8e9221bb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
400 changed files with 3688 additions and 5969 deletions

View file

@ -135,7 +135,7 @@ namespace Server
if (callback == null)
return "null";
return $"{callback.Method.DeclaringType.FullName}.{callback.Method.Name}";
return $"{callback.Method.DeclaringType?.FullName ?? ""}.{callback.Method.Name}";
}
public static void DumpInfo(TextWriter tw)
@ -183,7 +183,7 @@ namespace Server
if (prof != null) prof.Created++;
}
public override string ToString() => GetType().FullName;
public override string ToString() => GetType().FullName ?? "";
public static TimerPriority ComputePriority(TimeSpan ts)
{
@ -255,8 +255,7 @@ namespace Server
60000
};
private static List<Timer>[] m_Timers = new List<Timer>[8]
{
private static List<Timer>[] m_Timers = {
new List<Timer>(),
new List<Timer>(),
new List<Timer>(),