src/openSourceC.DotNetLibrary.Core/XmlSerialize.cs
/// <summary>
///		Deserializes the XML document contained by the specified <see cref="TextReader"/>.
/// </summary>
/// <param name="type">The type of the object to deserialize.</param>
/// <param name="textReader">The <see cref="TextReader"/> that contains the XML document
///		to deserialize.</param>
/// <returns>
///		An object of the specified type.
/// </returns>
Deserializes the XML document contained by the specified .
Deserializes the XML document contained by the specified .
public static object? Deserialize(Type type, TextReader textReader)
		{
			if (type == null)
			{
				throw new ArgumentNullException(nameof(type));
			}
			if (textReader == null)
			{
				throw new ArgumentNullException(nameof(textReader));
			}
#if DEBUG
			try
			{
#endif
				XmlSerializer serializer = new XmlSerializer(type);
				return serializer.Deserialize(textReader);
#if DEBUG
			}
			catch (Exception)
			{
				throw;
			}
#endif
		}
public static object ? Deserialize ( Type type , TextReader textReader ) { if ( type == null ) { throw new ArgumentNullException ( nameof ( type ) ) ; } if ( textReader == null ) { throw new ArgumentNullException ( nameof ( textReader ) ) ; } if DEBUG try { endif XmlSerializer serializer = new XmlSerializer ( type ) ; return serializer . Deserialize ( textReader ) ; if DEBUG } catch ( Exception ) { throw ; } endif }
Deserializes the XML document contained by the specified .
Deserializes the XML document contained by the specified .
An object of the specified type.
An object of the specified type .
type
Type
The type of the object to deserialize.
The type of the object to deserialize .
textReader
TextReader
The  that contains the XML document
to deserialize.
The that contains the XML document to deserialize .