Skip to content

Instantly share code, notes, and snippets.

⌨️
coding

Emanuele DelBono emadb

⌨️
coding
Block or report user

Report or block emadb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emadb
emadb / DynamicBinderExtensions.cs
Last active Aug 16, 2018 — forked from thecodejunkie/DynamicModelBinder.cs
A DynamicModelBinder for NancyFx (http://nancyfx.org/). It convert your request data (form, body, querystring) into a dynamic model. This means that you don't have to create all your useless DTO. NOTE. The original version is here https://gist.github.com/thecodejunkie/5521941 (thecodejunkie). I simply add the support for deserialize the request …
View DynamicBinderExtensions.cs
public static class DynamicBinderExtensions
{
public static dynamic DynaBind(this INancyModule module)
{
return module.Bind<DynamicDictionary>();
}
}
You can’t perform that action at this time.