fix SoftNcRunner GM code normalization.
This commit is contained in:
@@ -194,48 +194,44 @@ Class XFactory
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenByChild_" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByChild__1_System_Xml_Linq_XElement_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild``1(System.Xml.Linq.XElement,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenByChild<T>(XElement, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByChild__1_System_Xml_Linq_XElement_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild``1(System.Xml.Linq.XElement,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenByChild<T>(XElement, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from a child element of the provided XML element.
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from the first child element of the provided XML element.
|
||||
This overload discards the relative file path output.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static T GenByChild<T>(XElement src, string baseDirectory, GenMode genMode, params object[] res) where T : class</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static T GenByChild<T>(XElement src, string baseDirectory, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
|
||||
<dd><p>The parent XML element containing the child to process</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The base directory for resolving paths</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd></dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">T</span></dt>
|
||||
<dd><p>The generated object of type T, or null if generation fails</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>T</code></dt>
|
||||
<dd><p>The type of object to generate</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -249,17 +245,17 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenByChild_" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByChild__1_System_Xml_Linq_XElement_System_String_System_String__Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild``1(System.Xml.Linq.XElement,System.String,System.String@,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenByChild<T>(XElement, string, out string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByChild__1_System_Xml_Linq_XElement_System_String_System_String__System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByChild``1(System.Xml.Linq.XElement,System.String,System.String@,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenByChild<T>(XElement, string, out string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from a child element of the provided XML element.</p>
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from the first child element of the provided XML element.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static T GenByChild<T>(XElement src, string baseDirectory, out string relFile, GenMode genMode, params object[] res) where T : class</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static T GenByChild<T>(XElement src, string baseDirectory, out string relFile, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -273,8 +269,11 @@ This overload discards the relative file path output.</p>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>Output parameter that receives the relative file path if src is a file reference, or null otherwise</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>Progress reporter for the XML parsing chain</p>
|
||||
</dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd><p>Whether to rebase the directory to the file's location</p>
|
||||
</dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
@@ -284,7 +283,7 @@ This overload discards the relative file path output.</p>
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">T</span></dt>
|
||||
<dd><p>The generated object of type T, or null if generation fails</p>
|
||||
<dd><p>The generated object of type T, or null if src is null</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -306,8 +305,8 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenByFile_" data-uid="Hi.Common.XmlUtils.XFactory.GenByFile*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByFile__1_System_String_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByFile``1(System.String,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenByFile<T>(string, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenByFile__1_System_String_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenByFile``1(System.String,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenByFile<T>(string, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -316,7 +315,7 @@ This overload discards the relative file path output.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static T GenByFile<T>(string baseDirectory, string relFile, GenMode genMode, params object[] res) where T : class</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static T GenByFile<T>(string baseDirectory, string relFile, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -327,8 +326,11 @@ This overload discards the relative file path output.</p>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The relative file path to the XML file</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>Progress reporter for the XML parsing chain</p>
|
||||
</dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd><p>Whether to rebase the directory to the file's location</p>
|
||||
</dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
@@ -338,7 +340,7 @@ This overload discards the relative file path output.</p>
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">T</span></dt>
|
||||
<dd><p>The generated object of type T, or null if generation fails</p>
|
||||
<dd><p>The generated object of type T, or null if relFile is null</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -360,47 +362,43 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByChild_" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByChild*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByChild__1_System_Xml_Linq_XElement_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByChild``1(System.Xml.Linq.XElement,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenFileRefSourceByChild<T>(XElement, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByChild__1_System_Xml_Linq_XElement_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByChild``1(System.Xml.Linq.XElement,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenFileRefSourceByChild<T>(XElement, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an XML source and file object of type T from the first child element of the provided XML element.</p>
|
||||
<div class="markdown level1 summary"><p>Generates a <a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource<T></a> from the first child element of the provided XML element.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSourceByChild<T>(XElement src, string baseDirectory, GenMode genMode, params object[] res) where T : class, IMakeXmlSource</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSourceByChild<T>(XElement src, string baseDirectory, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class, IMakeXmlSource</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
|
||||
<dd><p>The parent XML element containing the child to process</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The base directory for resolving paths</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd></dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource</a><T></dt>
|
||||
<dd><p>An XmlSourceAndFile object containing the generated object and its file path</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>T</code></dt>
|
||||
<dd><p>The type of object to generate, must implement IMakeXmlSource</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -414,47 +412,43 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByFile_" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByFile*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByFile__1_System_String_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByFile``1(System.String,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenFileRefSourceByFile<T>(string, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSourceByFile__1_System_String_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSourceByFile``1(System.String,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenFileRefSourceByFile<T>(string, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an XML source and file object of type T from an XML file.</p>
|
||||
<div class="markdown level1 summary"><p>Generates a <a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource<T></a> from an XML file.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSourceByFile<T>(string baseDirectory, string relFile, GenMode genMode, params object[] res) where T : class, IMakeXmlSource</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSourceByFile<T>(string baseDirectory, string relFile, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class, IMakeXmlSource</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The base directory for resolving paths</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The relative file path to the XML file</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd></dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource</a><T></dt>
|
||||
<dd><p>An XmlSourceAndFile object containing the generated object and its file path</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>T</code></dt>
|
||||
<dd><p>The type of object to generate, must implement IMakeXmlSource</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -468,47 +462,43 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_GenFileRefSource_" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSource*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSource__1_System_Xml_Linq_XElement_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSource``1(System.Xml.Linq.XElement,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
GenFileRefSource<T>(XElement, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_GenFileRefSource__1_System_Xml_Linq_XElement_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.GenFileRefSource``1(System.Xml.Linq.XElement,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
GenFileRefSource<T>(XElement, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an XML source and file object of type T from an XML element.</p>
|
||||
<div class="markdown level1 summary"><p>Generates a <a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource<T></a> from an XML element.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSource<T>(XElement src, string baseDirectory, GenMode genMode, params object[] res) where T : class, IMakeXmlSource</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static FileRefSource<T> GenFileRefSource<T>(XElement src, string baseDirectory, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class, IMakeXmlSource</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
|
||||
<dd><p>The source XML element</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The base directory for resolving paths</p>
|
||||
</dd>
|
||||
<dt><code>genMode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd></dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Common.XmlUtils.FileRefSource-1.html">FileRefSource</a><T></dt>
|
||||
<dd><p>An XmlSourceAndFile object containing the generated object and its file path</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Type Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>T</code></dt>
|
||||
<dd><p>The type of object to generate, must implement IMakeXmlSource</p>
|
||||
</dd>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -522,18 +512,18 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_Gen_" data-uid="Hi.Common.XmlUtils.XFactory.Gen*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_Gen__1_System_Xml_Linq_XElement_System_String_Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.Gen``1(System.Xml.Linq.XElement,System.String,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
Gen<T>(XElement, string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_Gen__1_System_Xml_Linq_XElement_System_String_System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.Gen``1(System.Xml.Linq.XElement,System.String,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
Gen<T>(XElement, string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from an XML element with specified generation mode.
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from an XML element.
|
||||
This overload discards the relative file path output.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static T Gen<T>(XElement src, string baseDirectory, GenMode mode, params object[] res) where T : class</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static T Gen<T>(XElement src, string baseDirectory, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -544,8 +534,11 @@ This overload discards the relative file path output.</p>
|
||||
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The base directory for resolving paths</p>
|
||||
</dd>
|
||||
<dt><code>mode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>Progress reporter for the XML parsing chain</p>
|
||||
</dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd><p>Whether to rebase the directory to the file's location</p>
|
||||
</dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
@@ -555,7 +548,7 @@ This overload discards the relative file path output.</p>
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">T</span></dt>
|
||||
<dd><p>The generated object of type T, or null if generation fails</p>
|
||||
<dd><p>The generated object of type T</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -577,17 +570,17 @@ This overload discards the relative file path output.</p>
|
||||
|
||||
<a id="Hi_Common_XmlUtils_XFactory_Gen_" data-uid="Hi.Common.XmlUtils.XFactory.Gen*"></a>
|
||||
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_Gen__1_System_Xml_Linq_XElement_System_String_System_String__Hi_Common_XmlUtils_GenMode_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.Gen``1(System.Xml.Linq.XElement,System.String,System.String@,Hi.Common.XmlUtils.GenMode,System.Object[])">
|
||||
Gen<T>(XElement, string, out string, GenMode, params object[])
|
||||
<h3 id="Hi_Common_XmlUtils_XFactory_Gen__1_System_Xml_Linq_XElement_System_String_System_String__System_IProgress_System_Object__System_Boolean_System_Object___" data-uid="Hi.Common.XmlUtils.XFactory.Gen``1(System.Xml.Linq.XElement,System.String,System.String@,System.IProgress{System.Object},System.Boolean,System.Object[])">
|
||||
Gen<T>(XElement, string, out string, IProgress<object>, bool, object[])
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from an XML element with specified generation mode.</p>
|
||||
<div class="markdown level1 summary"><p>Generates an object of type T from an XML element.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static T Gen<T>(XElement src, string baseDirectory, out string relFile, GenMode mode, params object[] res) where T : class</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static T Gen<T>(XElement src, string baseDirectory, out string relFile, IProgress<object> progress, bool enableRebase = true, object[] res = null) where T : class</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -601,8 +594,11 @@ This overload discards the relative file path output.</p>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>Output parameter that receives the relative file path if src is a file reference, or null otherwise</p>
|
||||
</dd>
|
||||
<dt><code>mode</code> <a class="xref" href="Hi.Common.XmlUtils.GenMode.html">GenMode</a></dt>
|
||||
<dd><p>The generation mode to use</p>
|
||||
<dt><code>progress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>Progress reporter for the XML parsing chain</p>
|
||||
</dd>
|
||||
<dt><code>enableRebase</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd><p>Whether to rebase the directory to the file's location</p>
|
||||
</dd>
|
||||
<dt><code>res</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
|
||||
<dd><p>Additional parameters for generation</p>
|
||||
@@ -612,7 +608,7 @@ This overload discards the relative file path output.</p>
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><span class="xref">T</span></dt>
|
||||
<dd><p>The generated object of type T, or null if generation fails</p>
|
||||
<dd><p>The generated object of type T</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user