public T Deserialize <T>(ReaderBase reader)
 {
     try
     {
         GraphReader graphReader = new GraphReader(this.TypeBinder, reader, this.SurrogateSelector, this.Context, this.WellKnownContents);
         return((T)graphReader.Deserialize(typeof(T)));
     }
     catch (Exception inner)
     {
         throw new SerializationException(inner.Message, inner);
     }
 }
 public object Deserialize(ReaderBase reader, Type expectedType)
 {
     try
     {
         GraphReader graphReader = new GraphReader(this.TypeBinder, reader, this.SurrogateSelector, this.Context, this.WellKnownContents);
         return(graphReader.Deserialize(expectedType));
     }
     catch (Exception inner)
     {
         throw new SerializationException(inner.Message, inner);
     }
 }