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

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