Code guidline / code convention / naming convention for C#??

This is a discussion on Code guidline / code convention / naming convention for C#?? within the C# Programming forums, part of the General Programming Boards category; looking for something like a code guidline.... i.e. that a TextBox should have the prefix: txt TextBox --> txt i.e. ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    101

    Question Code guidline / code convention / naming convention for C#??

    looking for something like a code guidline....

    i.e. that a TextBox should have the prefix: txt


    TextBox --> txt i.e. txtCustomer

    Label --> lbl i.e. lblCustomer

    String --> str i.e. strCustomer

    bool --> boo i.e. booIsValide



    is something like that anywhere available?




    gicio

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Code guidline / code convention / naming convention for C#??

    Originally posted by gicio
    looking for something like a code guidline....

    i.e. that a TextBox should have the prefix: txt


    TextBox --> txt i.e. txtCustomer

    Label --> lbl i.e. lblCustomer

    String --> str i.e. strCustomer

    bool --> boo i.e. booIsValide



    is something like that anywhere available?




    gicio
    Probably the best thing is Hungarian Notation

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    With .NET Microsoft set new internal standards for coding. They can be found in the Design Guidelines for class library developers. Most .NET code will hopefully follow this standard, most examples on the web already do.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. << !! Posting Code? Read this First !! >>
    By kermi3 in forum C# Programming
    Replies: 0
    Last Post: 10-14-2002, 01:26 PM
  2. << !! Posting Code? Read this First !! >>
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 10-03-2002, 03:04 PM
  3. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  4. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 11:51 AM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21