Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IF conditional coding
Message
De
06/09/2005 19:26:23
 
 
À
06/09/2005 18:29:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Divers
Thread ID:
01046886
Message ID:
01047203
Vues:
12
Hilmar,

>Lemme see - I am still new to programming in .NET Do you mean that This.Variable would cause an error for variables declared at the method level?<

If you typed "this.", Intellisense would not *give* you any of the variable names at the method level. If you just typed it anyway (this.MyMethodVariable), then yes, you'd get a compiler error.

~~Bonnie




>>That is one of my pet peeves ... people who do NOT use "this". The use of "this" makes it quite simple to tell the difference between a variable scoped to the whole control vs one scoped to the method. IMHO, one should always use "this".
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform