Mike's Technology Blog

Wednesday, December 29, 2004

.NET naming


I was playing with C# a bit, but its variable naming is driving me insane - I have to use capital letters so much, for example, when I want get the value of some text field I have to write the following:

string someValue = someTextBox.Text;

Note the capital letter in 'Text', personally, I love Java accessor:

String someValue = someTextBox.getText();

But guy from Microsoft decided to make coders life 'easier', the invented their own properties that cause this naming confuse:

class Person {
private string name;
public string Name {
get {
return name;
set {
name = value;


Post a Comment

<< Home