Marc

Marc

  • NA
  • 205
  • 54.4k

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

Sep 25 2014 1:29 PM
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)