private static ValueGetter GetValueGetter(object target, string name) { return(PropertyDescriptorValueGetter.GetPropertyDescriptorValueGetter(target, name) ?? GenericDictionaryValueGetter.GetGenericDictionaryValueGetter(target, name) ?? DictionaryValueGetter.GetDictionaryValueGetter(target, name) ?? MethodInfoValueGetter.GetMethodInfoValueGetter(target, name) ?? PropertyInfoValueGetter.GetPropertyInfoValueGetter(target, name) ?? FieldInfoValueGetter.GetFieldInfoValueGetter(target, name) ?? (ValueGetter) new NullValueGetter()); }
private static ValueGetter GetValueGetter(object target, string name) { return(PropertyInfoValueGetter.GetPropertyInfoValueGetter(target, name) ?? (ValueGetter) new NoValueGetter()); }
public void Visit(PropertyInfoValueGetter getter) { CompiledGetter = Expression.Property(_dataParameter, getter.PropertyInfo); }