Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Community Wiki

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Navigation

Google Ads

Generating getters and setters

From Wiki

Jump to: navigation, search

We all know how boring it can get to create those getters and setters aka properties for our classes.

Image:Handy1.png

Well in Visual studio 2005 and 2008 you just right-click on a private field and then choose refactor and encapsulate field.

Image:Handy2.png

And hey presto after a few more clicks you have you getter and/or setter.

Image:Handy3.png

MS makes life easy for us lazy programmers.

217 Rating: 3.0/5 (15 votes cast)