...Does not contain a definition for 'name'

Hello everyone, im following along with a tutorial on how to make a visual novel by “TheHappieCat” i dont know if im allowed to put links so i wont but im having an issue where it says “Error CS0117 'DialogueParser.DialogueLine does not contain a definition for ‘name’” if i hover over the .name in this code:

	public string GetName(int lineNumber)
	{
		if (lineNumber < lines.Count)
			return lines [lineNumber].name;

		return "";
	}

So i went to look at the DialogueLine code and i see that name content and pose are all there:

List<DialogueLine> lines;

	struct DialogueLine
	{
		string name;
		string content;
		int pose;

		public DialogueLine(string n, string c, int p)
		{
			name = n;
			content = c;
			pose = p;
		}
	}

and im just at a complete loss at how to get this .name working, if you can help id really appreciate it.

Id maybe start by renaming it - many other things are called “.name” in unity and there could be a conflict. So go to string name and press “ctrl +r + r” and rename it to something else and see if that fixes it. its at least a test.