D
D
Dmitry Petrov2018-05-04 16:19:29
visual studio
Dmitry Petrov, 2018-05-04 16:19:29

What C# naming convention does Visual Studio 2012+ use?

I understand that there are a lot of coding styles, but once and somewhere I met such a standard and it seems like the studio generates code in the same style when creating classes:
1) Interfaces are named with a capital I (capital i);
2) Class fields are named with the _ prefix in CamelCase (the first letter is lowercase);
3) Internal variables of methods are named in CamelCase;
4) Properties and methods (of any privacy level) are named in Pascal.
Is there such a thing or is it a mess in my head?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Petrov, 2018-05-07
@Sellec

Basically, I found this. Practically what you need, except for the prefix in the fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question