title: how to get all primitive type of an object
body: <p>I wanna have all properties of an object which have primitive type, and if the object has a relation to another class , I wanna have the primitive properties of this another class too</p>
  
  <p>the problem is if entity A has entity B and B has A, what can I do</p>
  
  <p>in simple case by using reflection I can get first level Primitive properties but, I cant go into entity B and again get primitive properties of A,, a loop would be created,, what is ur offer?</p>
  
  <pre><code>public class A
  {
   public string Name{get;set;}
   public B B{get;set;}
  }
  
  
   public class B
  {
   public string Category{get;set;}
   public A A{get;set;}
  }
  </code></pre>