Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/23/20 11:58:38 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • added readme JsonInterfaceReadMe.txt
  • removed dead code
  • fixed a bug in JsonItemConverter -> now the type comparison should work as intended
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItemConverter.cs

    r17478 r17483  
    9393
    9494    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)*/;
    9797
    9898    private bool CompareTypes(Type t1, Type t2) =>
    99       t1 == t2 || t1.IsAssignableFrom(t2) ||
     99      t1 == t2 || /*t1.IsAssignableFrom(t2) ||*/
    100100      t1.GetInterfaces().Any(
    101101        i => i == t2 || CompareGenericTypes(i, t2)
Note: See TracChangeset for help on using the changeset viewer.