public bool IsRuntimeTypeSupportedByAssetTool(Type type, bool allowNotPublic) { if (!type.IsGenericType && !type.IsAbstract && !type.IsValueType && (allowNotPublic || !type.IsNotPublic)) { return(!PlatformTypeHelper.HasUnboundTypeArguments(type)); } return(false); }