In what context? The underscore has no meaning in and of itself.
I use underscores for class-level private members as it makes it a bit easier for me to tell what the scope of the vaiable is with just a glance (and it saves me from having to be creative when trying to differentiate parameters/local variables from class-level variables).
i.e.:void DoStuff(string id) { _id = id; } It is used by some libraries to identify members that are not meant to be used directly. Also, some languages discourage their use because compilers will often use them in the identifiers for automatically generated members, possibly casuing a name collision, but this isn't really a problem with smarter compilers. |