HelperGetXMLElementListDataClass, DataClassForList Method | |
List of XML element store to list of data item.
Namespace:
SOWIData.XML
Assembly:
SOWIData.XML (in SOWIData.XML.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static List<DataClassForList> GetXMLElementList<DataClass, DataClassForList>(
this XmlDocument pXMLDocument
)
where DataClassForList : new()
<ExtensionAttribute>
Public Shared Function GetXMLElementList(Of DataClass, DataClassForList As New) (
pXMLDocument As XmlDocument
) As List(Of DataClassForList)
Parameters
- pXMLDocument
- Type: System.XmlXmlDocument
exist XML document
Type Parameters
- DataClass
- data class or interface defined which fields to read
- DataClassForList
- data class for list
Return Value
Type:
ListDataClassForList[Missing <returns> documentation for "M:SOWIData.XML.Helper.GetXMLElementList``2(System.Xml.XmlDocument)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
XmlDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks Examples var lList = lXMLDocument.GetXMLElementList<easyPlanData.Interface.IAnlageKenDuWert, easyPlanData.AnlageKenDuWert>();
lDataItem.Anlagekennlinie.DuWerte = lList;
See Also