コード例 #1
0
 public static object?ParseFromPairs(
     this IEnumerable <KeyValuePair <string, StringValues> > collection,
     Type targetType,
     JsonSerializerOptions?options = default) => FormsParser.ParseFromPairs(
     collection,
     targetType,
     instance => Serialize(instance, options ?? GetOptions()),
     (json, type) => Deserialize(json, type, options ?? GetOptions()));
コード例 #2
0
 public static object?ParseFromPairs(
     this IEnumerable <KeyValuePair <string, StringValues> > collection,
     Type targetType) => FormsParser.ParseFromPairs(collection, targetType, Serialize, Deserialize);