예제 #1
0
 public override bool TryParse(ref string filter, out IFilterParserResultGroup result)
 {
     if (string.IsNullOrEmpty(filter))
     {
         result = default(IFilterParserResultGroup);
         return(false);
     }
     result = this.Parse(filter);
     this.OnParsed(ref filter, 0, filter.Length);
     return(true);
 }
예제 #2
0
 public override bool TryParse(ref string filter, out IFilterParserResultGroup group)
 {
     if (string.IsNullOrWhiteSpace(filter))
     {
         group = default(IFilterParserResultGroup);
         return(false);
     }
     group = this.Parse(filter);
     this.OnParsed(ref filter, 0, filter.Length);
     return(true);
 }
예제 #3
0
            public override bool TryParse(ref string filter, out IFilterParserResultGroup result)
            {
                var match = this.Regex.Match(filter);

                if (!match.Success)
                {
                    result = default(IFilterParserResultGroup);
                    return(false);
                }
                result = this.Parse(match);
                this.OnParsed(ref filter, match.Index, match.Length);
                return(true);
            }
예제 #4
0
 public virtual bool Equals(IFilterParserResultGroup other)
 {
     if (other == null)
     {
         return(false);
     }
     if (object.ReferenceEquals(this, other))
     {
         return(true);
     }
     if (!Enumerable.SequenceEqual(this.Entries, other.Entries))
     {
         return(false);
     }
     return(true);
 }
예제 #5
0
 public abstract bool TryParse(ref string filter, out IFilterParserResultGroup result);
예제 #6
0
 public virtual bool TryParse(ref string filter, out IFilterParserResultGroup group)
 {
     throw new NotImplementedException();
 }