views:

125

answers:

4

Where is the documentation for valid property names in .NET? Obviously things like space, * or & aren't valid in a property name, but where is this documented?

+3  A: 

The rules for valid identifiers apply to the properties as well.

Start looking here: C# Language Specification - 2.4.2 Identifiers

Developer Art
+8  A: 

You can look the information up for a particular language on the platform, here are a few.

C# Language
VB Language

More specifically: C# Property Declaration

Quintin Robinson
+3  A: 

http://msdn.microsoft.com/en-us/library/aa664670%28VS.71%29.aspx

From the language spec. Property names are identifiers just like members and functions. Granted, there are standard naming conventions elsewhere that are optional, but greatly encouraged.

Joel Day