Click or drag to resize

WITecReaderBuildNodeWithIDT Method

Builds a data class instance for the node identified by the provided identifier. The method resolves the name of the data node from the internal ID dictionary and constructs the appropriate TDataClass derived instance.

Namespace: Altaxo.Serialization.WITec
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public T BuildNodeWithID<T>(
	int id
)
where T : TDataClass

Parameters

id  Int32
The identifier of the node to build.

Type Parameters

T
The expected return type, which must derive from TDataClass.

Return Value

T
An instance of T representing the node with the requested identifier.
Exceptions
ExceptionCondition
KeyNotFoundExceptionThrown when the specified id does not exist in the ID dictionary.
NotImplementedExceptionThrown when the found class name is not implemented in the switch statement.
InvalidDataExceptionThrown when the constructed instance is not of the expected type T.
See Also