2
Answers

How do I pull my object out of main to a procedure?

Marc

Marc

10y
590
1
What I am trying to do is I have a method in main I am trying to make public so it can reach other methods within the same class.
 
Example
 
Static void Main()
{
   Domain xml = new Domain(); //This is the method I am trying to pull to Process
   XMLDomain  xDo = xml.//just an example
 
     Process();
     Terminate();
}
 
public static void Process()
{
   // how do I pull the xDo value here?
}
 
Thanks for the help!
Answers (2)