title: Pass parameters from a project to a specific class in another project
body: <p>I just started to learn C# for a school project but I'm stuck on something.</p>
  
  <p>I have a solution with 2 projects (and each project has a class), something like this:</p>
  
  <p>Solution:</p>
  
  <ul>
  <li>Server (project) (...) MyServerClass.cs, Program.cs</li>
  <li>App (project) (...) MyAppClass.cs, Program.cs</li>
  </ul>
  
  <p>In my "MyServerClass.cs", I have this:</p>
  
  <pre><code>class MyServerClass
  {
      ...
      public void SomeMethod()
      {
          Process.Start("App.exe", "MyAppClass");
      }
  }
  </code></pre>
  
  <p>How can I properly send, for example, an IP address and port? Would something like this work?</p>
  
  <pre><code>class MyServerClass
  {
      ....
      public void SomeMethod()
      {
          string ip = "127.0.0.1";
          int port = 8888;
          Process.Start("App.exe", "MyAppClass " + ip + " " + port);
      }
  }
  </code></pre>
  
  <p>Then in my "MyAppClass.cs", how can I receive that IP address and port?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The objective of this work is to practice processes/threads/sockets. The idea is having a server that receives emails and filter them, to know if they're spam or not. We got to have 4 or 5 filters. The idea was having them as separated projects (ex: Filter1.exe, Filter2.exe, ...), but I was trying to have only 1 project (ex: Filters.exe) and have the filters as classes (Filter1.cs, Filter2.cs, ...), and then create a new process for each different filter.</p>
  
  <p>I guess I'll stick to a project for each filter!</p>
  
  <p>Thanks!</p>