public bool Contains (StringRange other) { var end = Location + Length; var oend = other.Location + other.Length; return Location <= other.Location && other.Location < end && Location <= oend && oend < end; }