private static BindingInfo GetBindingInfo(BindIndexFieldAttribute attr)
 {
     return(new BindingInfo
     {
         FieldName = attr.FieldName
     });
 }
        private static IIndexModelBinder GetBinder(BindIndexFieldAttribute attr)
        {
            var binderType = attr.BinderType;

            if (binderType == null)
            {
                binderType = typeof(DefaultPropertyIndexBinder);
            }
            return(_bindersCache.GetOrAdd(binderType, type => Activator.CreateInstance(binderType) as IIndexModelBinder));
        }
 private static IIndexModelBinder GetBinder(BindIndexFieldAttribute attr)
 {
     return(_bindersCache.GetOrAdd(attr.BinderType, type => Activator.CreateInstance(attr.BinderType) as IIndexModelBinder));
 }