Table of Contents

Delegate XFactory.GenByXElementDelegate

Namespace
Hi.Common.XmlUtils
Assembly
HiGeom.dll

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 XElement

The source XML element

baseDirectory string

The base directory for resolving paths

relFile string

The 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.