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