I wonder whether any naming rules are considered for primary constructors? public class Entity(Dependency dependency) vs public class Entity(Dependency _dependency) ? (refer to Private instance fields start with an underscore (_) and the remaining text is camelCased.)
Type of issue
Missing information
Description
I wonder whether any naming rules are considered for primary constructors?
public class Entity(Dependency dependency)
vspublic class Entity(Dependency _dependency)
? (refer toPrivate instance fields start with an underscore (_) and the remaining text is camelCased.
)Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/fundamentals/coding-style/identifier-names.md
Document Version Independent Id
7f85babc-6295-21dd-f194-dede663f9966
Article author
@BillWagner
Metadata