Exemplo n.º 1
0
 public bool Equals(StartsWithElement other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Start, Start));
 }
Exemplo n.º 2
0
        private bool Includes(StartsWithElement element)
        {
            if (Start.Length > element.Start.Length)
            {
                return(false);
            }

            if (element.Start.Substring(0, Start.Length) == Start)
            {
                return(true);
            }

            return(false);
        }