IForeNETRuntime.VariantToObject

Syntax

VariantToObject(Value: Variant): IForeNETRuntimeObject;

Parameters

Value.Value, that must be converted to a .NET-object implemented by the IForeNETRuntimeObject interface.

Description

The VariantToObject method converts the .NET object, contained in variable of the Variant type, to the object implemented by the IForeNETRuntimeObject interface.

Comments

At operation of the IForeNETRuntimeType.InvokeMethod method and the IForeNETRuntimeObjectInstance.InvokeMethod method, the result of execution is received in the form of value of the Variant type. If the result of execution is an object of .NET type, this method should be used to further work with this object.

Example

The example of use is given in description of the IForeNETRuntimeMethodArgs.ValueObject property.

See also:

IForeNETRuntime