[ad_1]
1) Declare the string or variable you want to access as PUBLIC in 2.cs
2) Create an object of class 2.cs in 3.cs
3) Access the variable using this object.
4
[ad_2]
solved c# accessing variables defined in different .cs files [closed]
[ad_1]
1) Declare the string or variable you want to access as PUBLIC in 2.cs
2) Create an object of class 2.cs in 3.cs
3) Access the variable using this object.
4
[ad_2]
solved c# accessing variables defined in different .cs files [closed]