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 trialMuhammad Bah
852 PointsVisual Studios "get, set" not working.
So I tried writing the code he has written in Visual Studios but it did not even seem to recognize the function. Everytime I write 'get', another option pops up. Am I doing it wrong or is this not compatible with Visual Studios?
3 Answers
Steven Parker
231,275 PointsYou might want to use the provided environment for this course.
If you're using a different environment, you might need to establish some configuration parameters for compatibility. You'd probably need to share some more specific examples for anyone to be able to make suggestions.
But why not use the provided environment for this course? If you continue with the C# courses, later ones will actually guide you through setting up and working in the Visual Studio environment.
Bojan Djulbic
5,716 PointsIn visual studio type propfull, press tab and it create private variable and its getters and setters automatically for you. Try using that
Brendan Wilson
3,787 PointsHi Muhammad, I am also using Visual Studio and had the same problem. You probably already know, but in the next video (Auto - Properties) Jeremy fixes the problem and you will be able to compile in Visual Studio.