Skip to content

Commit 3ae0032

Browse files
fixup! Add ability to use dynamic component in any format
Update documentation
1 parent f9e324f commit 3ae0032

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

doc/reference/modules/basic_mapping.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,9 +2680,10 @@
26802680
</para>
26812681

26822682
<para>
2683-
The <literal>&lt;dynamic-component&gt;</literal> element allows an <literal>IDictionary</literal>
2684-
or <literal>IDictionary&lt;string, object&gt;</literal> to be mapped as a component, where the
2685-
property names refer to keys of the dictionary. See <xref linkend="components-dynamic" />.
2683+
The <literal>&lt;dynamic-component&gt;</literal> element allows an <literal>IDictionary</literal>,
2684+
<literal>IDictionary&lt;string, object&gt;</literal>, or a C# <literal>dynamic</literal> to be mapped
2685+
as a component. When using dictionaries, the property names refer to keys of the dictionary. See
2686+
<xref linkend="components-dynamic" />.
26862687
</para>
26872688

26882689
</sect2>

doc/reference/modules/component_mapping.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@
352352

353353
<para>
354354
You can also map a property of type <literal>IDictionary</literal> or
355-
<literal>IDictionary&lt;string, object&gt;</literal>:
355+
<literal>IDictionary&lt;string, object&gt;</literal>, or declared as a C#
356+
<literal>dynamic</literal>:
356357
</para>
357358

358359
<programlisting><![CDATA[<dynamic-component name="UserAttributes">

0 commit comments

Comments
 (0)