Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange syntax
Message
 
 
À
26/12/2014 13:59:53
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01612723
Message ID:
01612725
Vues:
48
>>In one of the methods I see the following code
>>
>>
>>searchValue = searchValue = pi.GetValue(searchCriteriaViewModel);
>>
>>What does this double = mean here? Is it a typo or has some meaning?
>>
>>Thanks in advance.
>
>This seems like a boolean variable. Basically, the searchValue boolean variable would be True if the new value equals the previous value. I have seen something like that before and adjusted the code after as this is highly confusing. Not totally sure if this is the case here but maybe someone else can provide more info.

I don't think it's a boolean variable. It seems to be an object variable with properties.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform