src/openSourceC.DotNetLibrary.Core/XmlSerialize.cs
/// <summary>
///		Deserializes the XML document contained by the specified string.
/// </summary>
/// <param name="type">The type of the object to deserialize.</param>
/// <param name="xmlString">The string to be deserialized.</param>
/// <returns>
///		An object of the specified type.
/// </returns>
Deserializes the XML document contained by the specified string.
Deserializes the XML document contained by the specified string .
public static object? Deserialize(Type type, string xmlString)
		{
			if (type == null)
			{
				throw new ArgumentNullException(nameof(type));
			}
			if (string.IsNullOrWhiteSpace(xmlString))
			{
				throw new ArgumentException("Value cannot be null, empty, or whitespace.", nameof(xmlString));
			}
			using (StringReader stringReader = new StringReader(xmlString))
			{
				return Deserialize(type, stringReader);
			}
		}
public static object ? Deserialize ( Type type , string xmlString ) { if ( type == null ) { throw new ArgumentNullException ( nameof ( type ) ) ; } if ( string . IsNullOrWhiteSpace ( xmlString ) ) { throw new ArgumentException ( " " , nameof ( xmlString ) ) ; } using ( StringReader stringReader = new StringReader ( xmlString ) ) { return Deserialize ( type , stringReader ) ; } }
Deserializes the XML document contained by the specified string.
Deserializes the XML document contained by the specified string .
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 .
xmlString
string
The string to be deserialized.
The string to be deserialized .