Q:

Passing a value from an assembly to an application in C#

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...
How can I pass the manipulated string from the assembly into the application? 
For example, If I have this assembly...
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;
        }
    }
}

And I have this application which calls the Convert function within the assembly...
using System;
using test;

public class Class2
{
    public static void Main()
    {
        Class1.Convert();
    }
}

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?

A:

It looks like you want to pass in a valid and then return another value?  Then get rid of the of properties on your Class1, they are not necessary.  Just make the input string the parameter of the Convert function, and then return the output.
using System;

namespace test
{

    public class Class1
    {
        public static string Convert(string inputString)
        {
            string outputString = inputString.ToUpper();
            return outputString;
        }
    }
}

and:
using System;
using test;

public class Class2
{
    public static void Main()
    {
        string thisIsMyReturnedString = Class1.Convert("whatever the input value should be");
    }
}

