Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Recap

Jack Edmonds
Jack Edmonds
2,466 Points

I watched the video but I can't figure out first and second parameter of the void sendMessage code.

see above

2 Answers

Logan R
Logan R
22,989 Points

Hi!

When it's asking that, it's referring to the code:

void SendMessage(string message, string recipient)
{
}

Parameters refer to the items inside of the ( ), "(string message, string recipient)". message is the first parameter and recipient is the second parameter.

Jack Edmonds
Jack Edmonds
2,466 Points

Got it but it said that string recipient was incorrect to the second parameter. I found out that the answer to the first parameter was string. Also could you please tell me the answer to the name of the void SendMessage method.

Logan R
Logan R
22,989 Points

The first question asks the type of the first parameter, the second one asks the name of the second parameter.

As far as the name, the name of a method is what comes before the ( ), but after the void ;)