Skip to content

Instantly share code, notes, and snippets.

Avatar

Antoine Seiter ToineSeiter

View GitHub Profile
@ToineSeiter
ToineSeiter / AliasBinder
Last active Apr 16, 2020
Bind form-urlencoded values to property alias
View AliasBinder
using System;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Web.Mvc;
namespace Sample
{
[AttributeUsage(AttributeTargets.Property)]
public class AliasAttribute : Attribute