title: AttributeProviderAttribute work, and attribute redirection mechanics in C#
body: <p>Hello all and everyone! 
  English is not my native language. I apologize for any errors.</p>
  
  <p>I decided to use the AttributeProviderAttribute to reduce repetitions in the code. But I don’t understand how to check: does attribute redirection work or not? And how are contradictions between their own attributes and redirected attributes handled?</p>
  
  <pre><code>//using namespaces
  using System.ComponentModel;
  using System.Reflection;
  
  //Test Classes Foo, Bar:
  
  public class Foo {
      [DisplayName(nameof(Astring) + "Name")]
      public string Astring { get; set; }
  }
  
  public class Bar {
      [AttributeProvider(nameof(Foo), nameof(Foo.Astring))]
      public string Bstring { get; set; }
  }
  
  // Code for checking attributes:
  PropertyInfo bStrProp = typeof(Bar).GetProperty(nameof(Bar.Bstring));
  </code></pre>
  
  <p>Questions:</p>
  
  <ol>
  <li>The debugger does not display a DisplayNameAttribute for <code>Bar.Bstring</code>. How do I know if attribute redirection worked?</li>
  <li><p>How are contradictions between own attributes and redirected from another property handled?</p>
  
  <p>    a. Priority own attributes.</p>
  
  <p>    b. Priority imported attributes.</p>
  
  <p>    c. Priority last attributes.</p>
  
  <p>    d. An exception is generated.</p></li>
  </ol>