Ejemplo n.º 1
0
        public static Type ToNative(IReflectClass reflectClass)
        {
            NetClass netClass = reflectClass.GetDelegate() as NetClass;

            if (netClass == null)
            {
                return(null);
            }
            return(netClass.GetNetType());
        }
Ejemplo n.º 2
0
        public virtual bool IsCollection(IReflectClass candidate)
        {
            if (candidate.IsArray())
            {
                return(false);
            }
            NetClass netClass = candidate as NetClass;

            if (null == netClass)
            {
                return(false);
            }
            return(typeof(System.Collections.ICollection).IsAssignableFrom(netClass.GetNetType()));
        }