>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