Re: C# convention

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



John Salerno <johnjsal@xxxxxxxxxxxxxxx> wrote:
> > But where does "the" come in here? There are lots of different C#
> > conventions available to pick and choose from - which does the author
> > mean?
>
> Oh, I see what you mean. They meant that the C# convention for using
> braces after methods, control statements, etc. I think that's specific.

No it's not. There *is* no one specific C# convention. The closest
thing to it is the MS guidelines for developers and the naming
guidelines in the ECMA spec, and those don't cover bracing as far as I
can see. The C# spec uses K&R bracing (in the bit I just looked at,
anyway) but I can't see it actually being recommended.

Clearly *someone* must be stating this as *a* convention, but the
question is who.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: propper casing of a constant
    ... This convention is consistent with the .NET Framework and is easy ... A sizable section of the Framework Design Guidelines is ... "We used the term SCREAMING CAPS to indicate an all upper case style. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: files which start with a dot and firefox gmail
    ... convention, the files are intrinsically different from "normal" files. ... Oops yes - I go to pieces when using long words :-) ... V_/_ No MS products were used in the creation of this message ... Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines ...
    (Fedora)
  • Re: Consistency in transliteration
    ... > of differing versions co-existing until convention finally chooses one ... > groundrules or guidelines at all? ...
    (sci.lang)