Пример #1
0
        public void AllowOnType <TType, TPropertyType>(Expression <Func <TType, TPropertyType> > propertySelector,
                                                       Func <TPropertyType, TPropertyType, bool> propertyComparison)
        {
            MemberExpression memberExpression = GetMemberExpression(propertySelector);

            _objectComparer.AllowOnType(new PropertyComparator
            {
                Property   = memberExpression.Member,
                Comparator = propertyComparison
            });
        }