Delegate XFactory.GenByXElementDelegate
Delegate for generating objects from XML elements with relative file path.
public delegate object XFactory.GenByXElementDelegate(XElement src, string baseDirectory, string relFile, object[] res)
Parameters
src
XElementThe source XML element
baseDirectory
stringThe base directory for resolving paths
relFile
stringThe relative file path
res
object[]Additional parameters for generation
Returns
- object
The generated object
- Extension Methods
Remarks
Note that the design pattern of seperating BaseDirectory and RelativePath is for easy data package moving. The pattern assume the BaseDirectory can be changed if all the content in the BaseDirectory is changed to the destinate directory.