Accessing members in your own class: use (auto)properties or not?

前端 未结 6 1581
温柔的废话
温柔的废话 2021-01-22 21:16

I\'ve created this \"question\" as a community-wiki, because there is no right or wrong answer. I only would like to know how the community feels about this specific issue.

6条回答
  •  生来不讨喜
    2021-01-22 21:48

    This is a fairly frequently asked question. Here's my article that describes some of the issues:

    http://blogs.msdn.com/ericlippert/archive/2009/01/14/automatic-vs-explicit-properties.aspx

提交回复
热议问题