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 trialnguoisechia .com
Courses Plus Student 6,025 Points......is the name of the namespace in the following method call.
..........is the name of the namespace in the following method call.
3 Answers
Binary Soul
4,592 PointsMeans that
StackOverflow.Controllers.CommentController.Details();
should have "StackOverflow.Controllers" as namespaces.
and
Apple.IPhone.Dialer.Dial(string phoneNumber);
should be "Apple.IPhone".. but it always runs into a bummer.
Steven Parker
231,236 PointsThings to keep in mind when identifying parts of method names are:
- The general rule for method names is: namespace.class.method()
- Only the namespace can contain periods (.)
- The last two periods separate the namespace from the class and the class from the method
- Any other periods are part of the namespace.
So the word closest to the parentheses is the method, the word to the left of it is the class, and everything left of that is the namespace. For example, if you had this:
System.IO.File.Copy(...);
The method is Copy, the class is File, and the namespace is System.IO.
swatijha
Courses Plus Student 7,718 PointsThe answer for Apple.IPhone.Dialer.Dial(string phoneNumber) is actually Dial