public static Type ToNative(IReflectClass reflectClass) { NetClass netClass = reflectClass.GetDelegate() as NetClass; if (netClass == null) { return(null); } return(netClass.GetNetType()); }
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())); }