title: Deserialize a nested struct with MongoDB C# driver
body: <p>I serialize this Kontejner class without problems.</p>
  
  <pre><code>public struct Dimenzije
  {
      public double duzina, sirina, visina;
      public Dimenzije(double d, double s, double v)
      {
          duzina = d; sirina = s; visina = v;
      }
  }
  
  public class Kontejner
  {
  
      [BsonId]
      public string Id { get; set; }
  
      public string Opis { get; set; }
      public Dimenzije Dimenzije { get; set; }
  
      [BsonElement]
      public double Zapremina
      {
          get
          {
              return Dimenzije.duzina * Dimenzije.sirina * Dimenzije.visina;
          }
      }
  
      public bool Cvrsti { get; set; }
      public bool Tecni { get; set; }
      public bool Rasuti { get; set; }
  }
  </code></pre>
  
  <p>When I try to deserialize it, it can't deserialize the Dimenzije field. </p>
  
  <p>I know this is a <code>mapping</code> issue, but I'm pressured into finding a quick answer, and I don't see it in MongoDB docs. Thanks in advance.</p>