title: How do I use a deserialized object c#
body: <p>I'm trying to implement a function in a console-based game to save the state and load it back if need be via serialization. </p>
  
  <p>If I deserialize an object using <code>obj = (objType)BinaryFormatter.Deserialize(FileStream);</code> can i use the methods available to the object by simply doing <code>obj.objMethod()</code> or is there another step i'm missing?
  For example:</p>
  
  <pre><code>Game game = new Game();
  </code></pre>
  
  <p>let's say the game class has a <code>Map()</code> method. And I serialize the game object.</p>
  
  <pre><code>BinaryFormatter.Serialize(FileStream, game);
  </code></pre>
  
  <p>And I deserialize it</p>
  
  <pre><code>Game savedGame = (Game)BinaryFormatter.Deserialize(FileStream);
  </code></pre>
  
  <p>can I do:</p>
  
  <pre><code>savedGame.Map();
  </code></pre>