Fixes several more expression issues and cast type check merges.
This commit is contained in:
parent
f93c3b992e
commit
9542c79ea4
24 changed files with 106 additions and 145 deletions
|
|
@ -503,12 +503,9 @@ namespace Server
|
|||
* Bleh.
|
||||
*/
|
||||
|
||||
Type[] ifaces = active.FindInterfaces( delegate( Type type, object obj )
|
||||
{
|
||||
return ( type.IsGenericType )
|
||||
&& ( type.GetGenericTypeDefinition() == typeof( IComparable<> ) )
|
||||
&& ( type.GetGenericArguments()[0].IsAssignableFrom( active ) );
|
||||
}, null );
|
||||
Type[] ifaces = active.FindInterfaces((type, obj) => (type.IsGenericType)
|
||||
&& (type.GetGenericTypeDefinition() == typeof(IComparable<>))
|
||||
&& (type.GetGenericArguments()[0].IsAssignableFrom(active)), null );
|
||||
|
||||
if ( ifaces.Length > 0 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue