Beispiel #1
0
 private bool CalcAsBool(object data)
 {
     return(Operand1.GetStrResultOut(data).Contains(Operand2.GetStrResultOut(data)));
 }
 protected override bool CompareAsStr(object data)
 {
     return(StringComparer.InvariantCultureIgnoreCase.Compare(Operand1.GetStrResultOut(data), Operand2.GetStrResultOut(data)) < 0);
 }
 protected string CalcAsStr(object data)
 {
     return(Operand1.GetStrResultOut(data) + Operand2.GetStrResultOut(data));
 }
Beispiel #4
0
 //protected override bool CompareAsGeom(object data) { return (Operand1.GetGeomResultOut(data).Equal(Operand2.GetGeomResultOut(data))); }
 protected override bool CompareAsStr(object data)
 {
     return(Operand1.GetStrResultOut(data) == Operand2.GetStrResultOut(data));
 }
 private bool CalcAsBool(object data)
 {
     return(Operand1.GetStrResultOut(data).IndexOf(Operand2.GetStrResultOut(data), StringComparison.OrdinalIgnoreCase) >= 0);
 }
Beispiel #6
0
        private Int64 CalcRes(object data)
        {
            var idx = Operand2.GetStrResultOut(data).IndexOf(Operand1.GetStrResultOut(data));

            return(idx + 1);
        }
Beispiel #7
0
        private string CalcAsStr(object data)
        {
            string s = Operand1.GetStrResultOut(data);

            return(s.Substring(s.Length - (int)Operand2.GetIntResultOut(data)));
        }
Beispiel #8
0
 private bool CalcAsBool(object data)
 {
     return(Operand1.GetStrResultOut(data).StartsWith(Operand2.GetStrResultOut(data)));
 }
Beispiel #9
0
 private string CalcAsStr(object data)
 {
     return(Operand1.GetStrResultOut(data).Substring(0, (int)Operand2.GetIntResultOut(data)));
 }