Beispiel #1
0
        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);
        }
Beispiel #2
0
        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)));
        }