I haven't seen a C# standard on that, but most of the actual code I've seen written uses "getter" properties and they omit the word "Get" from the function name.
Example:
Public SongOrderList SongOrder
{
get
{
return mySongOrderList;
}
}
Using "Get" (and "Set") as a function name prefix is something I usually see in langauges that don't have properties a la .NET (languages such as C, Java).
Edit:
...and of course you can have setters too
Public SongOrderList SongOrder
{
get
{
//do some processing code here
return mySongOrderList;
}
set
{
//do some processing code here
mySongOrderList = value; //value is a C# keyword, in case you didn't know. it is the parameter to the setter
}
}
Of course, if you want a getter and a setter and you don't need any extra processing, just pure Java-bean-like get/set youc an do this:
Public SongOrderList SongOrder
{
get; set;
}
If you only want a PUBLIC getter you can do this (I think - it's been a while):
Public SongOrderList SongOrder
{
public get; private set;
}