Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange syntax
Message
 
 
À
26/12/2014 14:26:24
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:
01612730
Vues:
40
>Its probably a typo and could be interpreted in one of three ways.
>
>If search value is boolean and pi.GetValue returns a boolean, it could be:
searchValue = searchValue == pi.GetValue(searchCriteriaViewModel);
>
>Another case is that the original developer was either trying to set two variables to the same value:
searchValue = otherSearchValue = pi.GetValue(searchCriteriaViewModel);
>
>Or it could be that the original developer just put searchValue in twice by accident or copying and pasting one to many times. If that method is working properly at the moment, I would assume the last scenario and remove one of the searchValue assignments.

I think most likely it's a typo. The method seems to be working fine.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform