.NET valid property names

前端 未结 4 779
天命终不由人
天命终不由人 2021-01-22 19:03

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?

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-22 19:16

    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.

提交回复
热议问题