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 Namespaces

I am stuck on a code quiz for c#

I am trying to get past a c# code quiz. It is asking me what is the name of the namespace in Adobe.Illustrator.Canvas.Paint(); sorry if this is not clear please help me.

1 Answer

Steven Parker
Steven Parker
231,236 Points

:point_right: Things to keep in mind when identifying the parts of a method name 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.

:warning: If you want an outright spoiler you can look where this was asked before.