public static bool IscomplexMapping <IComplexType>(MapTarget maps) { bool ret = maps .target .GetProperties() .Any(s => typeof(IComplexType) .IsAssignableFrom(s.PropertyType)); if (!ret) { return(false); } if (maps.source != null) { ret = maps .source .GetProperties() .Any(s => typeof(IComplexType) .IsAssignableFrom(s.PropertyType)); } else { ret = false; } return(ret); }
public static bool IscomplexMapping <IComplexType>(MapTarget maps) { return(maps .target .GetProperties() .Any(s => typeof(IComplexType) .IsAssignableFrom(s.PropertyType)) ? true : maps .source .GetProperties() .Any(s => typeof(IComplexType) .IsAssignableFrom(s.PropertyType))); }