I need to reference the value of a variable in a different method, class, and file than the one I am currently in. I am brand new to C# and still trying to get these concepts.
Basic structure I have:
namespace Planning
{
public class Service
{
public bool AddRoute(l, m, n)
{
bool variable = xyz;
}
}
}
And I need to access that variable from a completely different file. I have looked at several questions already posted here but not of them deal with the exact level I am trying to access or how to access the variable from a method with parameters that I cannot access at that time.