title: How do I determine if a property is a user-defined type in C#?
body: <p>How do I determine if a property is a user-defined type?  I tried to use IsClass as shown below but its value was true for String properties (and who knows what else).</p>
  
  <pre><code>foreach (var property in type.GetProperties()) {
      if (property.PropertyType.IsClass) {
          // do something with property
      }
  }
  </code></pre>
  
  <p><strong>* Updated for more clarity *</strong></p>
  
  <p>I am trying to traverse a given type's definition and if the given type or any of its public properties are defined within the assembly, I am searching for an embedded JavaScript document. I just don't want to waste processing resources and time on native .NET types.</p>