VariantToObject(Value: Variant): IForeNETRuntimeObject;
Value.Value, that must be converted to a .NET-object implemented by the IForeNETRuntimeObject interface.
The VariantToObject method converts the .NET object, contained in variable of the Variant type, to the object implemented by the IForeNETRuntimeObject interface.
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.
The example of use is given in description of the IForeNETRuntimeMethodArgs.ValueObject property.
See also: