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#

I am trying to use readonly in visual studio but it is not working.

I am trying to use readonly in visual studio but it is not working.And how can I compile multiple classes in visual studio.

Steven Parker
Steven Parker
231,261 Points

If you need help with a particular piece of code, be sure to show the code here (such as the code with "readonly").

1 Answer

Steven Parker
Steven Parker
231,261 Points

Compiling multiple classes should be easy if the files containing the code are all part of the project. By default, a build will compile any file in the project that has changed since the last compile.