>>You know whats freaking me out about C# right now?
>>It's that user define variables come with what seems like a built in function and properties like
>>
>>MyVariable.ToString();
>>MyVariable.Length;
>>
>>
>>But why is Length a property and ToString a function?
>
>ToString is an action. Length is an aspect.
>
>I figured it out this way. You can add more actions on top of actions. But you can't the same idea to an aspect.
>
>string myString = "It's that user define variables come with what seems like a built in function and properties like"
>
>this.txtBox1.Text = myString.SubString(0,someLen).Upper().ToString();
Thanks.
To me
lcMyStr = STR(MyNumericValue)
or
lnLength = LEN(MyStrValue)
seems natural. You got your function calls with parameter.
But this...
MyNumericValue.ToString()
or
MyStrValue.Length()
is just too freaky. Kinda reminds me of VB6 "Me.Something".
It just isn't right. :)
The American Republic will endure, until politicians realize they can bribe the people with their own money.
- Alexis de Tocqueville
No man’s life, liberty, or property is safe while the legislature is in session.
– Mark Twain (1866)