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
solved c# accessing variables defined in different .cs files [closed]
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
solved c# accessing variables defined in different .cs files [closed]