title: Ignore Non Serialized property in BinaryFormatter Serialization
body: <p>I have a class called <code>User</code>and it is <code>[Serializable]</code> and inherited from base class <code>IdentityUser</code> an Entity Framework class and Non Serializable. </p>
  
  <p>I have a property in <code>Booking</code> class with type <code>User</code> and <code>Booking</code> class is <code>Serializable</code> I am trying to serialize the booking object using <code>BinaryFormatter</code>  but I can't because of <code>IdentityUser</code> class and I get this error :</p>
  
  <blockquote>
    <p>'Type 'Microsoft.AspNet.Identity.EntityFramework.IdentityUser' in
    Assembly 'Microsoft.AspNet.Identity.EntityFramework, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as
    serializable.'</p>
  </blockquote>
  
  <p>Is there a way to ignore this property because I don't think there is away to make 'IdentityUser' as Serializable.</p>
  
  <pre><code>[Serializable]
  public class User : IdentityUser
  {
     public String FirstName { get; set; }
  }
  
  [Serializable]
  public class Booking
  {
     [ForeignKey("Guest")]
     public string GuestId { set; get; }
     public virtual User Guest { set; get; }
  }
  </code></pre>