473,785 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the correct case convention for Set?

I looked at MSDN and a book and both described the naming convention for
parameters should be camel style.

The book used camel, except for Set (ByVal Value as ...)

There it always used an uppercase V
What is the correct convention for Set?

Anything special if the name is Value.
Thanks
Jan 24 '06 #1
4 1497
" **Developer**" <RE************ *@a-znet.com> schrieb:
I looked at MSDN and a book and both described the naming convention for
parameters should be camel style.

The book used camel, except for Set (ByVal Value as ...)

There it always used an uppercase V
What is the correct convention for Set?


There is no correct naming. It simply depends on which naming convention
you are following. If you are using the .NET Framework's naming convention,
the parameter should be named 'Value' (camel case for method parameters).
In VB 2005 the parameter is named 'value' opposed to 'Value' in VS.NET
2002/2003 (unfortunately, because I use my own convention...).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 25 '06 #2
I should have written: "correct by the .NET Framework's naming "convention
rather then: "correct convention"

you said:
"If you are using the .NET Framework's naming convention,
the parameter should be named 'Value' (camel case for method parameters)."
Anyway, my confusion must stem from the definition of camel
I believe "newColorVa lue" is camel.
Shouldn't it be "value" or is one word capitalized?
Thanks again


What is the correct convention for Set?

There is no correct naming. It simply depends on which naming convention
you are following. If you are using the .NET Framework's naming
convention, the parameter should be named 'Value' (camel case for method
parameters). In VB 2005 the parameter is named 'value' opposed to 'Value'
in VS.NET 2002/2003 (unfortunately, because I use my own convention...).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 25 '06 #3
" **Developer**" <RE************ *@a-znet.com> schrieb:
Anyway, my confusion must stem from the definition of camel
I believe "newColorVa lue" is camel.
Yes, that's camel case.
Shouldn't it be "value" or is one word capitalized?


According to the .NET Framework naming guidelines it should read 'value'.
VS 2005 names the parameter 'value' by default.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 25 '06 #4
thanks
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:eC******** ******@TK2MSFTN GP15.phx.gbl...
" **Developer**" <RE************ *@a-znet.com> schrieb:
Anyway, my confusion must stem from the definition of camel
I believe "newColorVa lue" is camel.


Yes, that's camel case.
Shouldn't it be "value" or is one word capitalized?


According to the .NET Framework naming guidelines it should read 'value'.
VS 2005 names the parameter 'value' by default.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

54
6577
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO FRICKIN' COOL!!! ***MAN*** that would save me a buttload of work and make my life sooooo much easier!" As opposed to minor differences of this feature here, that feature there. Variations on style are of no interest to me. I'm coming at this from a...
37
40506
by: Jon Perez | last post by:
I saw this code snippet: sock.listen(20) for _ in range(20): newsock, client_addr = sock.accept() print "Client connected:", client_addr data = "" why use _ for this example? Is there any optimization to be had using it?
7
23555
by: Newbie_sw2003 | last post by:
Where should I use them? I am giving you my understandings. Please correct me if I am wrong: MACRO: e.g.:#define ref-name 99 The code is substituted by the MACRO ref-name. So no overhead. Execution is faster. Where will it be stotred?(Is it in bss/stack/?) FUNCTION:
8
2010
by: clintonG | last post by:
Every single time neophytes or converts ask about naming and style conventions what are they told by the majority consensus? The answer is "do what you prefer but do so consistently" right? Yes, that's right, that's exactly what is said. People joining a team of developers are also encouraged to cooperate with their peers and adopt what has already been established right? Yes, that's exactly what is encouraged. Teamwork and cooperation...
14
2449
by: raghu | last post by:
Hello I have a doubt plz clarify that #ifndef SYSTEM_H #define SYSTEM_H what will be the value of SYATEM_H after this #define statement and before that statement. Thanking you all Bye
36
2593
by: Pat | last post by:
Hi, I've run into a strange problem, but one that seems like it might be fairly common. I have a single base class, from which several other classes are derived. To keep the example simple, the base class is "Animal" and the derived classes are "Cat," "Dog," and "Horse." The base class has a pure virtual method:
89
5771
by: Tubular Technician | last post by:
Hello, World! Reading this group for some time I came to the conclusion that people here are split into several fractions regarding size_t, including, but not limited to, * size_t is the right thing to use for every var that holds the number of or size in bytes of things. * size_t should only be used when dealing with library functions.
9
1892
by: s0suk3 | last post by:
I'm totally new to C, so this is a question from a total newbie. I know most people write the names in C with underscores, as_in_this_name. But... is it also customary to write them in mixed case, asWithThisName? Or is it a horrible horrible horrible thing to do??
9
5755
by: qglyirnyfgfo | last post by:
I was reading an article regarding .Net arrays and on that article, the author mentioned something about SZ arrays. As far as I can tell, SZ arrays are one dimension arrays that are zero based, am I correct on this? Also, can someone tell me what does “SZ” stands for? Thank you.
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10100
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.