============================
**constructedValue** element
============================
The **constructedValue** element is used to construct a value in configuration file.
The **constructedValue** element can be used recursively in another **constructedValue** to specify the constructor parameter or injected property values.
.. note::
Refer to :doc:`../../sample-files/IoCConfiguration_constructedValue.generated` for more examples on **constructedValue** element.
Below are some examples of using **constructedValue** element.
Example 1: Using **constructedValue** element to define a setting of type **IoC.Configuration.Tests.ConstructedValue.Services.AppInfo**
=======================================================================================================================================
.. code-block:: xml
:linenos:
Example 2: Using **constructedValue** element to define a service implementation
================================================================================
.. code-block:: xml
:linenos:
Example 3: Using **constructedValue** element to specify a value returned in **autoProperty** element
=====================================================================================================
.. code-block:: xml
:linenos:
Example 4: Using **constructedValue** element to specify a value returned in **autoMethod** element
===================================================================================================
.. code-block:: xml
:linenos:
Example 5: Using **constructedValue** element as a parameter value in another **constructedValue** element
==========================================================================================================
.. code-block:: xml
:linenos: