When you mark a property with System.ComponentModel.RecommendedAsConfigurableAttribute set to true, the value of this attribute is set to the constant member RecommendedAsConfigurableAttribute.Yes.
Therefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as RecommendedAsConfigurableAttribute.Yes.