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#

What would a fully written out method call look like if it used this new Treehouse.FitnessFrog namespace?

Would it look like Treehouse.FitnessFrog.class.method ? That many decimals seems excessive. Could I just call it with FitnessFrog.class.method ?

1 Answer

Steven Parker
Steven Parker
231,248 Points

The namespace is allowed to contain periods. The compiler may not recognize it if you use only part of the identifier.

But you can provide a "using" directive and leave off the namespace entirely in the code.