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); } }
public PropertyLocator(string property, LocatorOperation op = LocatorOperation.None) : this() { Property = property; Operation = op; }
public MemberLocator(string property, bool asString = false, LocatorOperation op = LocatorOperation.None) : this() { Property = property; Operation = op; AsString = asString; }