JHSerialization.XmlDeSerialize(Ttype) Method (String)

DCSoft.DBUtilityGeneric

JHSerializationXmlDeSerializeTtype Method (String)
使用 UTF-8 编码格式,将 XML 格式的字符串反序列化为指定类型的数据,如果反序列化后值为 null,则返回 default(Ttype),异常直接抛出

Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static Ttype XmlDeSerialize<Ttype>(
	string xml
)

Parameters

xml
Type: SystemString
XML 格式的字符串

Type Parameters

Ttype
最终要得到的数据类型

Return Value

Type: Ttype
返回反序列化后的指定类型的数据对象
See Also