TomlDeserializeObjectT Method (XElement, FuncDataContractJsonSerializer) |
Deserializes the TOML to the specified type.
Namespace: HyperTomlProcessorAssembly: HyperTomlProcessor (in HyperTomlProcessor.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax public static T DeserializeObject<T>(
XElement toml,
Func<DataContractJsonSerializer> factory = null
)
Public Shared Function DeserializeObject(Of T) (
toml As XElement,
Optional factory As Func(Of DataContractJsonSerializer) = Nothing
) As T
Parameters
- toml
- Type: System.Xml.LinqXElement
The XElement that represents the TOML structure to deserialize. - factory (Optional)
- Type: SystemFuncDataContractJsonSerializer
The function to make a DataContractJsonSerializer.
if null, it will make a DataContractJsonSerializer with default settings.
Type Parameters
- T
- The type of the object to deserialize to.
Return Value
Type:
TThe deserialized object.
See Also