title: Passing a value from an assembly to an application in C#
body: <p>If I have an assembly which contains a function that manipulates a string and then returns that string, and I then have a separate C# application which calls the function from the assembly...</p>
  
  <p>How can I pass the manipulated string from the assembly into the application? </p>
  
  <p>For example, If I have this assembly...</p>
  
  <pre><code>using System;
  
  namespace test
  {
  
      public class Class1
      {
          string inputString = "hello";
          string outputString;
  
          public static string Convert(ref inputString, ref outputString)
          {
              outputString = inputString.ToUpper();
              return outputString;
          }
      }
  }
  </code></pre>
  
  <p>And I have this application which calls the Convert function within the assembly...</p>
  
  <pre><code>using System;
  using test;
  
  public class Class2
  {
      public static void Main()
      {
          Class1.Convert();
      }
  }
  </code></pre>
  
  <p>How can I get the returned outputString into the Class2 application?
  I can't reference it in the Main() function so how can I pass it in?</p>