+ 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?

6th Dec 2019, 1:45 PM
Martin Dolányi
Martin Dolányi - avatar
8 Respuestas
+ 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.
6th Dec 2019, 8:52 PM
sneeze
sneeze - avatar
+ 3
What IDE are you using?
6th Dec 2019, 3:41 PM
sneeze
sneeze - avatar
+ 2
Is the classin a assembly (like .dll) or is it a c# code class ( like .cs)
6th Dec 2019, 8:42 PM
sneeze
sneeze - avatar
+ 2
You're welcome. Keep asking, keep coding.
6th Dec 2019, 8:54 PM
sneeze
sneeze - avatar
+ 1
Oh I forget that. I'm using Visual Studio 2019 C#.
6th Dec 2019, 4:35 PM
Martin Dolányi
Martin Dolányi - avatar
+ 1
It's a c# code class
6th Dec 2019, 8:44 PM
Martin Dolányi
Martin Dolányi - avatar
+ 1
Thank you!
6th Dec 2019, 8:53 PM
Martin Dolányi
Martin Dolányi - avatar
+ 1
Thanks the motivation! I try my best! :)
6th Dec 2019, 8:55 PM
Martin Dolányi
Martin Dolányi - avatar