I would like to know how to use codes from a file from the same project. For example, I want to create a file where only my functions are stored, and use it in the “main” file of the program, for example. I tried using the same namespace and it doesn’t work. I’m using .NET 8. I use Visual Studio Community if that helps in any way
I tried to use the old model in the “main” file without implicit higher-level instructions, and still nothing worked in this second file created
Main file
Second file
user27320597 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
5