+ 1
How to use another classes variables from another folder?
I want to use a class from other folder and I want to do some other things with her variables there. How can I do it?
8 Antworten
+ 2
You can add existing files to your project by right-clicking on the Project node and selecting Add > Add Files....
from this link
https://docs.microsoft.com/en-us/visualstudio/mac/add-and-remove-project-items?view=vsmac-2019
Now the file is in you project
use a using statement to be able to access the variables of the class or use the full qualified name.
+ 3
What IDE are you using?
+ 2
Is the classin a assembly (like .dll) or is it a c# code class ( like .cs)
+ 2
You're welcome.
Keep asking, keep coding.
+ 1
Oh I forget that. I'm using Visual Studio 2019 C#.
+ 1
It's a c# code class
+ 1
Thank you!
+ 1
Thanks the motivation!
I try my best!
:)