Visual Basic (Usage) | ![]() |
---|---|
Dim extensions As IList(Of XmlElement) Dim elementName As XmlQualifiedName Dim value As T value = Utils.ParseExtension(Of T)(extensions, elementName) |
C# | |
---|---|
public static T ParseExtension<T>( IList<XmlElement> extensions, XmlQualifiedName elementName ) |
Parameters
- extensions
- The list of extensions to search.
- elementName
- Name of the element (use type name if null).
Type Parameters
- T
- The type of extension.
Return Value
The deserialized extension. Null if an error occurs.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x