/// <summary>
 ///     Creates the getter.
 /// </summary>
 /// <typeparam name="TParameter">The type of the parameter.</typeparam>
 /// <typeparam name="TResult">The type of the result.</typeparam>
 /// <param name="propertyExpression">The property expression.</param>
 /// <returns>Value Getter.</returns>
 public static Func <TParameter, TResult?> CreateGetter <TParameter, TResult>(
     Expression <Func <TParameter, TResult> > propertyExpression)
     where TResult : struct
 {
     return(ExpressionGetter.CreateValueGetter(propertyExpression));
 }
Exemplo n.º 2
0
 public static Func <TParameter, TResult> CreateGetter <TParameter, TResult>(
     Expression <Func <TParameter, TResult> > propertyExpression)
     where TResult : class
 {
     return(ExpressionGetter.CreateReferenceGetter(propertyExpression));
 }