コード例 #1
0
 /// <summary>
 /// Add a type hint for a property path, specifying the actual type returned
 /// by the last property of the property path chain
 /// </summary>
 /// <typeparam name="K"></typeparam>
 /// <param name="property">The property</param>
 /// <param name="hint">The Type actually returned.</param>
 /// <returns></returns>
 public BindingValidator <T> WithHint <K>(Expression <Func <T, K> > property, Type hint)
 {
     WithHint(ExpressionHelper.GetPathFromExpression(property), hint);
     return(this);
 }