Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft launches new open source codeplex foundation
Message
De
30/09/2009 08:20:55
 
 
À
30/09/2009 08:10:08
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01424841
Message ID:
01426817
Vues:
54
Well, I don't know why it would consume energy

It's a convention that makes it easier to understand


>But this is not mandatory, its just the a convention. I would not code this way. It just consumes energy that could be used better otherwise. Except for code obfuscation, where it sounds pretty nice.
>
>
>
>>Or will you explain that you use this feature in the sense that you distinct names by there case?
>>
>>
>>That is done in C#. Class properties/Methods conventionally start with an upper case char. Parameters to a function and variables conventionally start with a lower case char
>>
>>
>>Example with a constructor (CreateObject in foxpro)
>>
>>
>>public class AClass
>>{
>>    static void Main()
>>    {
>>         var pp =new MyClass("abc"); /// in foxpro pp = CreateObject('MyClass', 'abc')
>>    }
>>}
>>
>>public class MyClass
>>{ 
>>    protected string TheName ;
>>
>>    public MyClass(string theName)  // in foxpro this would be the Init() method
>>    {
>>        TheName = theName;  // or: this.TheName = theName;
>>    }
>>}
>>
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform