Exemple #1
0
        public static Task <T> GetJsonAsListEntryAsync <T>(this IContentSet contentSet,
                                                           string name,
                                                           Func <T, bool> predicate,
                                                           JsonSerializerOptions?serializerOptions = null)
        {
            if (predicate is null)
            {
                throw new ArgumentNullException(nameof(predicate));
            }

            return(contentSet.GetJsonAsListEntryAsyncInternal(name, predicate, serializerOptions));
        }