kenwarner
kenwarner

Reputation: 29120

.NET valid property names

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?

Upvotes: 2

Views: 3034

Answers (4)

Quintin Robinson
Quintin Robinson

Reputation: 82325

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

Upvotes: 8

Joel Day
Joel Day

Reputation: 1956

http://msdn.microsoft.com/en-us/library/aa664670(VS.71).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.

Upvotes: 4

user151323
user151323

Reputation:

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

Start looking here: C# Language Specification - 2.4.2 Identifiers

Upvotes: 3

Related Questions