title: How can I read attributes of a class in an external dll file in c#?
body: <p>I have the following block of code. How can I get all the attribute names from a specific DLL file? Currently, I can get the class names, namespace but I do not know how to get attributes in the class. Thank you,</p>
  
  <pre><code>foreach (Type type in myAssambly.GetTypes())
  {
      PropertyInfo myPI = type.GetProperty("DefaultModifiers");
      System.Reflection.PropertyAttributes myPA = myPI.Attributes;
  
      MessageBox.Show(myPA.ToString());
  }
  </code></pre>