コード例 #1
0
        public override bool TryBind(string value, IFormatProvider provider, out object result)
        {
            result = new BinderPrecedenceModel {
                Precedence = BinderPrecedence.Type
            };

            return(true);
        }
コード例 #2
0
 public string Get([FromRoute(BinderType = typeof(BinderPrecedenceModelBinder))] BinderPrecedenceModel model)
 {
     return(model.Precedence.ToString());
 }