Capitalization of the abbreviation that triggers the parameter

I have a variable that indicates the time during which the user interface can be inactive. I decided to name this variable UITimer. I want to pass a variable to my class constructor and then save it in a local field.

What is the right way to do this? We use a general convention with a parameter that is not uppercase. So I have to do this:

uITimer

or that?

uITimer

In addition, we make lower and lower case letters for our fields.

Should be declared as follows:

 private int _uITimer

or how is it

 private int _uiTimer?

I think _uiTimer is the way to go (another option seems lame), but I am interested to know if something is missing.

, , # ( - )

+5
1

Microsoft Framework :


3.1.2

DO , .

System.IO
public void StartIO(Stream ioStream)

DO , .

System.Xml
public void ProcessHtmlTag(string htmlTag)

, , .


.

uiTimer, , uiTimer .

+12

All Articles