public TokenFile.Cursor MoveCursTo(string Name) { NameCursorData NameMarker = Level1Name.Find(x => x.Name == Name); if (NameMarker == null) { throw new FormatException($"Fatal Error: Required Field Named \"{Name}\" is missing.", true); } TokenFile.Cursor Curs = NameMarker.setCursorLocation(this); if (Curs.TokenObj.theToken != Name) { throw new FormatException("name is not where it is Meant to be"); } return(Curs); }
public bool hasANameField(string Name) { NameCursorData NameMarker = Level1Name.Find(x => x.Name == Name); return(NameMarker != null); }