using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Cassandra myObject = new Cassandra();
string a ="söt";
myObject.hejsan(a);
System.Console.WriteLine(a);
Console.ReadLine();
}
}
class Cassandra
{
public string hejsan(string value)
{
value +="Cassnadra";
return value;
}
}
}
how come this wont work? all i get is "söt" as output when i should get "sötCassandra"
thanks for answers :)