Pretty simple question: When i have a persistable object, it usually has a property called ID (for abstract classes).
So .. is the naming convention ID or Id?
eg.
public int ID { get; set; }
or
public int Id { get; set; }
cheers 🙂
PS. This is for .NET btw. FXCop conformat would be a bonus.
I usually go with Identifier. If I really want to keep it short (as part of a longer identifier, for example), I use Id, unless it’s a parameter or private member.
The .NET Framework Naming Guidelines say this: