# C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize*">Deserialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize*"></a>
<h4 id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_System_IO_Stream_System_Type_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize(System.IO.Stream,System.Type)">Deserialize(Stream, Type)</h4>
<div class="markdown level1 summary"><p>Deserializes an XML-document instance</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Deserialize(Stream stream, Type type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Deserialize(stream As Stream, type As Type) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The Stream containing the XML-document instance to deserialize</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of object being deserialized</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The Object being deserialized</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize*"></a>
<h4 id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_System_Xml_XmlReader_System_Type_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize(System.Xml.XmlReader,System.Type)">Deserialize(XmlReader, Type)</h4>
<div class="markdown level1 summary"><p>Deserializes an XML-document instance</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Deserialize(XmlReader reader, Type type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Deserialize(reader As XmlReader, type As Type) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">XmlReader</span></td>
      <td><span class="parametername">reader</span></td>
      <td><p>The XmlReader containing the XML-document instance to deserialize</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of object being deserialized</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The Object being deserialized</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize*"></a>
<h4 id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_System_Xml_XmlReader_System_Object_System_Type_System_Type_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize(System.Xml.XmlReader,System.Object,System.Type,System.Type)">Deserialize(XmlReader, object, Type, Type)</h4>
<div class="markdown level1 summary"><p>Deserializes object</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Deserialize(XmlReader reader, object o, Type type, Type elementType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Deserialize(reader As XmlReader, o As Object, type As Type, elementType As Type) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">XmlReader</span></td>
      <td><span class="parametername">reader</span></td>
      <td><p>The XmlReader containing the XML-document instance to deserialize</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">o</span></td>
      <td><p>The Object being deserialized</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of object being deserialized</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">elementType</span></td>
      <td><p>The type of array elements (in case the object is an array)</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The Object being deserialized</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize*"></a>
<h4 id="C1_Win_List_Util_Xml_Serialization_Serializer_Deserialize_System_String_System_Type_" data-uid="C1.Win.List.Util.Xml.Serialization.Serializer.Deserialize(System.String,System.Type)">Deserialize(string, Type)</h4>
<div class="markdown level1 summary"><p>Deserializes an XML document string</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Deserialize(string XMLString, Type type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Deserialize(XMLString As String, type As Type) As Object</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">XMLString</span></td>
      <td><p>The XML string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of the object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><p>The object from the string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
