Changeset 17483 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItemConverter.cs
- Timestamp:
- 03/23/20 11:58:38 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItemConverter.cs
r17478 r17483 93 93 94 94 private bool CompareGenericTypes(Type t1, Type t2) => 95 (t1.IsGenericType && t1.GetGenericTypeDefinition() == t2) ||96 (t2.IsGenericType && t2.GetGenericTypeDefinition() == t1) ;95 (t1.IsGenericType && t1.GetGenericTypeDefinition() == t2) /*|| 96 (t2.IsGenericType && t2.GetGenericTypeDefinition() == t1)*/; 97 97 98 98 private bool CompareTypes(Type t1, Type t2) => 99 t1 == t2 || t1.IsAssignableFrom(t2) ||99 t1 == t2 || /*t1.IsAssignableFrom(t2) ||*/ 100 100 t1.GetInterfaces().Any( 101 101 i => i == t2 || CompareGenericTypes(i, t2)
Note: See TracChangeset
for help on using the changeset viewer.