lundi 13 février 2017

Flurl (Fluent Url) custom serialization

Vote count: 0

How do I override Flurl's default behaviour when serializing objects to query string values? E.g. the below code

DateTime date = new DateTime(2017, 1, 2, 3, 4, 5);
Url url = "".SetQueryParam("date", date);

produces the following url:

What I want is this:

which would be the result of serializing the date as follows:


asked 20 secs ago

Let's block ads! (Why?)

Flurl (Fluent Url) custom serialization

Aucun commentaire:

Enregistrer un commentaire