string is not being passed to another class in c# wpf
I am creating a software that basically modifies a .json file based on the profile username that the user entered. All of the code successfully retrieves the file location of the .json file based on the username they entered. However, no matter what I do, I cannot pass the “autosavePath” string from the first class (which holds the path) to the second class. Additionally, I have set up a log system to try track what happened and as soon as the code in the second class starts, the string remains empty whilst the string holds the correct path in the first class.