title: How to distingush compiler-generated classes from user classes in .NET
body: <p>I have a piece of code in my program that distinguishes compiler-generated classes by checking whether they contain "DisplayClass" in its type name.<br/>
  upon reading <a href="https://stackoverflow.com/questions/6402491/what-is-this-type-in-net-reflection/6403431#6403431">this answer</a>, I think I need a better way. How to distingush compiler-generated classes from user classes in .NET?</p>