public bool Equals(StartsWithElement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Start, Start)); }
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); }