Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 3
    This requirement you've been told about seems brain-dead, perhaps due to over-enforcement of a good guideline (don't just use the type name when there's a better name). Commented Sep 26, 2013 at 18:15
  • 3
    This won't even compile in C# since member names cannot be the same as the enclosing type. Commented Sep 26, 2013 at 18:46
  • 4
    @Lee: I think the context is that the property is in another type. E.g. a Person class containing a Dog property called Dog Commented Sep 26, 2013 at 18:54
  • 3
    I mean, if she is indeed a dog, label her as such. Commented Sep 26, 2013 at 19:01
  • 1
    Your IDE's syntax highlighting should differentiate the type and property. When you're not using an IDE, you can always look at the context. Commented Sep 26, 2013 at 21:51