I'm trying to assign a string to a variable in a separate class and then call on the variable later on in the code. How to write to variables in other classes and use them later on?
I have a public class called Player and a string variable called playerName declared as public and static. In my Program.cs I'm trying to assign the variable with Player.playerName = Console.ReadLine(); but, when I call on it later it returns nothing.
 
     
    