public static ExpressionType GetByLocator(LocatorOperation locatorOperation)
        {
            switch (locatorOperation)
            {
            case LocatorOperation.None:
            case LocatorOperation.Equal:
                return(ExpressionType.Equal);

            case LocatorOperation.NotEqual:
                return(ExpressionType.NotEqual);

            default:
                throw new ArgumentOutOfRangeException(nameof(locatorOperation), locatorOperation, null);
            }
        }
Ejemplo n.º 2
0
 public PropertyLocator(string property, LocatorOperation op = LocatorOperation.None) : this()
 {
     Property  = property;
     Operation = op;
 }
Ejemplo n.º 3
0
 public MemberLocator(string property, bool asString = false, LocatorOperation op = LocatorOperation.None) : this()
 {
     Property  = property;
     Operation = op;
     AsString  = asString;
 }