private bool ValidateSpanPath(SpanPath spanPath) { for (int i = 0; i < this._spanList.Count; i++) { if (spanPath.IsSubPath(this._spanList[i])) { return(false); } } return(true); }
// <summary> // Returns true if the path can be added // </summary> private bool ValidateSpanPath(SpanPath spanPath) { // Check for dupliacte entries for (var i = 0; i < _spanList.Count; i++) { // make sure spanPath is not a sub-path of anything already in the list if (spanPath.IsSubPath(_spanList[i])) { return(false); } } return(true); }
/// <summary> /// Returns true if the path can be added /// </summary> /// <param name="spanPath"> </param> private bool ValidateSpanPath(SpanPath spanPath) { // Check for dupliacte entries for (var i = 0; i < _spanList.Count; i++) { // make sure spanPath is not a sub-path of anything already in the list if (spanPath.IsSubPath(_spanList[i])) { return false; } } return true; }