I'm new to programming, I recently started a computer science degree and I'm struggling a bit with the code, I am currently learning c#.
I am trying to get a string in an array to cut down on the amount of code and make it easier to format it in the console.
my code is:
string [] sInvite = new string[]
{
"*********************************************"
+sGuest+
"is invited to the wedding of:"
+ sBride + " and " + sGroom +
"On Saturday 17 July 2016 at 2:00pm",
"*********************************************"
};
This is how I output it
Console.WriteLine(sInvite);
and this is the actual output in the console, obviously not what I wanted
system.String[]
any ideas on how I can get this to work, or what I am doing wrong?