title: Adding EditorAttribute at Run-time (Dynamically) to an Object's special Property
body: <p>If I have a class like the following whose code I cannot change, how can I add an EditorAttribute to <code>s1</code> at run-time?</p>
  
  <pre><code>class TestClass 
  { 
      public String s1 {get;set;} 
      public String s2 {get;set;} 
  } 
  </code></pre>
  
  <p>I tried this method, but it adds an EditorAttribute editor to <code>s2</code> too and I don't want that.</p>
  
  <pre><code>TypeDescriptor.AddAttributes(
       typeof(String),
       new EditorAttribute ( 
            typeof(MyUITypeEditor),
            typeof(UITypeEditor)));
  </code></pre>
  
  <p>How can I do this? </p>