title: Properties won't get serialized into the .designer.cs file
body: <p>In VS2010, control properties won't get serialized despite the ShouldSerializeFoo method, with the DesignerSerializationVisibility.Visible/Content as well.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>class Class1 : UserControl {
      [Browsable(true)]
      [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
      public string Foo {
          get; set;
      }
      public bool ShouldSerializeFoo() {
          return true;
      }
      public Class1() {
          Foo = "dupa";
      }
  }
  </code></pre>
  
  <p>However, the designer doesn't generate anything for this property:</p>
  
  <pre><code>        // 
          // class11
          // 
          this.class11.Location = new System.Drawing.Point(224, 262);
          this.class11.Name = "class11";
          this.class11.Size = new System.Drawing.Size(150, 150);
          this.class11.TabIndex = 2;
          this.class11.Load += new System.EventHandler(this.class11_Load);
  </code></pre>