List.Contains always false

I have a script in which I need to check if a string is present in a list

				tempPos = new Position();
				tempPos.pos = "left";
				tempPos.rom = roomObj.GetComponent<Room>();

But for some reason the List.Contains method always provides a false value. What is going one here?

I fixed this. I wasn’t setting the values of position before this section of script ran