Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange syntax
Message
 
 
To
26/12/2014 13:59:53
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01612723
Message ID:
01612725
Views:
49
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform