Fixes unavailable syntax for Mono.
This commit is contained in:
parent
f674ec2be0
commit
6ef32ce910
7 changed files with 99 additions and 144 deletions
|
|
@ -247,13 +247,13 @@ namespace Server.Commands
|
|||
|
||||
if ( x is CategoryEntry entry )
|
||||
a = entry.Title;
|
||||
else if ( x is CategoryTypeEntry typeEntry )
|
||||
a = typeEntry.Type.Name;
|
||||
else if ( x is CategoryTypeEntry xTypeEntry )
|
||||
a = xTypeEntry.Type.Name;
|
||||
|
||||
if ( y is CategoryEntry categoryEntry )
|
||||
b = categoryEntry.Title;
|
||||
else if ( y is CategoryTypeEntry typeEntry )
|
||||
b = typeEntry.Type.Name;
|
||||
else if ( y is CategoryTypeEntry yTypeEntry )
|
||||
b = yTypeEntry.Type.Name;
|
||||
|
||||
if ( a == null && b == null )
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue