public bool ScanToTag(string tag) { if (Length <= 0) { return(false); } if (cachedFile != null) { ES2Tag thisTag; if (!(thisTag = cachedFile.GetTag(tag)).isNull) { currentTag = thisTag; stream.Position = thisTag.settingsPosition; return(true); } } Reset(); // Reset so that we start from the beginning. while (Next()) { if (currentTag.tag == tag) { return(true); } } return(false); }