title: Pass custom objects to next activity in Xamarin Android
body: <p>I've got a few custom objects like <code>RootObject</code> and <code>Form</code> that I want to pass on to the next activity.</p>
  
  <p>This is an example of <code>RootObject</code>:</p>
  
  <pre><code>public class RootObject
  {
      public Form Form { get; set; }
  }
  </code></pre>
  
  <p>But how can I pass <code>RootObject</code> to the next activity with an <code>Intent</code> and get it in the next <code>Activity</code>? In <code>Form</code> there are again multiple properties with <code>Lists</code> and stuff and I need to access some of the properties in my next <code>Activity</code>. My intent is called like this:</p>
  
  <pre><code>saveButton.Click += delegate {
      if(ValidateScreen()){
          SaveData();
          Intent intent = new Intent(this, typeof(MainActivity));
          Bundle b = new Bundle();
          b.PutSerializable("RootObject", RootObject);
          StartActivity(intent);
      }
  };
  </code></pre>