Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public bool hasANameField(string Name)
        {
            NameCursorData NameMarker = Level1Name.Find(x => x.Name == Name);

            return(NameMarker != null);
        }