ResolveHandler.WriteElementsGeneric.TResult. Method

Writes the specified value at the specified elements to the current instance of the specified type.

Namespace:  TcHmiSrv.Core.Tools.Resolving.Handlers
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public Object WriteElementsGeneric<TResult>(
    ref TResult current,
    Queue<string> elements,
    Object value,
    Converter converter,
    bool throwOnError
)

Parameters

current

Type: TResult.
An instance of the specified type to write to.
If elements are empty, the value is written directly to this parameter.

elements

Type: System.Collections.Generic.Queue.String.
A Queue.T. that is used to determine the element to write.

value

Type: System.Object
The Object to be written.

converter

Type: TcHmiSrv.Core.Tools.Resolving.Converter
A Converter that is used to convert value to an instance of the Type associated with the element specified by elements.

throwOnError

Type: System.Boolean
true to throw an Exception if writing the specified element failed; otherwise, false to return the value at which writing fails.

Type Parameters

TResult

The type of the current instance to write to.

Return Value

Type: Object
The new value of at the specified elements.

Reference

ResolveHandler Class

TcHmiSrv.Core.Tools.Resolving.Handlers Namespace