KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicates: Why use getters and setters? C# 3.0 Auto-Properties - useful or not? Is there a difference between defining properties the following way - // private, with getter & setter private string fName; public string Name { get { return this.fName } set { this.fName = value } } // define as a Property public string Name { get; set;} As far as I can tell, it only looks like a stylistic preference. Am I missing something?
Tags (comma-separated)
Save Edits
Cancel