Exemple #1
0
        public static Task <T?> GetJsonAsCustomListEntry <T>(this IContentSet contentSet,
                                                             string name,
                                                             params object[] args)
            where T : class
        {
            if (contentSet is null)
            {
                throw new ArgumentNullException(nameof(contentSet));
            }

            //IReadOnlyList<Type> argTypes = args.Select(arg => arg.GetType()).ToList();

            //TODO: Check all arg types are valid JSON types - number, string, boolean

            return(contentSet.GetJsonAsCustomListEntryInternal <T>(name, args));
        }