Naming Conventions

Last post 07-03-2009 7:45 AM by chintanpshah. 4 replies.

Sort Posts:

  • Naming Conventions

    07-03-2009, 5:16 AM
    • Member
      38 point Member
    • KulerMaster
    • Member since 11-17-2008, 1:31 AM
    • Posts 141

    Is it ok if i use the underscors in my code

    I mean is it ok if i use a two underscores for the classes e.g. __MyClass or single underscore for the func e.g. _MySharedFunction etc.


    I mean is there any issue with the underscores?

  • Re: Naming Conventions

    07-03-2009, 7:28 AM
    Answer
    • All-Star
      89,250 point All-Star
    • vinz
    • Member since 10-05-2007, 11:47 AM
    • Cebu, Philippines
    • Posts 13,517
    • TrustedFriends-MVPs

    I usually use Pascal Case for naming classes..

    Design Guidelines for Class Library Developers

    Regards, Vinz
    SDE |Microsoft MVP - ASP/ASP.NET


    ~Currently looking for an overseas job opportunity~
  • Re: Naming Conventions

    07-03-2009, 7:35 AM
    Answer
    • Star
      9,761 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,754

    There will not be any Issue. But, its not common practice to give names like this to Class and Function. _ (underscore) is used for Private variables of class in general. 

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: Naming Conventions

    07-03-2009, 7:40 AM
    • Member
      38 point Member
    • KulerMaster
    • Member since 11-17-2008, 1:31 AM
    • Posts 141

    Means as long as i keep it consistent and as long i understand my code there will not be issues?


  • Re: Naming Conventions

    07-03-2009, 7:45 AM
    Answer
    • Star
      9,761 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,754

    No there can never be issue with the naming style of the classes or function or variables and so on.

    Its the matter of following Common Naming Convention.

    Hope this helps...

    Don't forget to mark as answer, if it helps
Page 1 of 1 (5 items)