private bool _recurseError(AdkException parent, SifErrorCategoryCode category) { if (parent.fChildren != null) { Exception ch = null; for (int i = 0; i < fChildren.Count; i++) { ch = (Exception)fChildren[i]; if (ch is SifException) { if (((SifException)ch).HasErrorCategory(category)) { return(true); } } else if (ch is AdkException) { if (_recurseError((AdkException)ch, category)) { return(true); } } } } return(false); }
private bool _recurseError( AdkException parent, SifErrorCategoryCode category ) { if ( parent.fChildren != null ) { Exception ch = null; for ( int i = 0; i < fChildren.Count; i++ ) { ch = (Exception) fChildren[i]; if ( ch is SifException ) { if ( ((SifException) ch).HasErrorCategory( category ) ) { return true; } } else if ( ch is AdkException ) { if ( _recurseError( (AdkException) ch, category ) ) { return true; } } } } return false; }