You can pass a string to function from main as given below:
I am passing string "MyName" to DisplayMessage function.The DisplayMessage function will return me another string which I will receive in displayName variable and can print it.
main()
{
string name="MyName";
string displayName=DisplayMessage(name);
Console.WriteLine({0},displayName);
}
public void DisplayMessage(string name)
{
return "Leon";
}