XLL+ Class Library (6.3)

ple::clr::toClr<T>

Transform an array received from Excel to a CLR array

template< class T >
array<T>^ toClr<T>(
   const std::vector<T>& vector
);
template< class T >
array<T, 2>^ toClr<T>(
   const ple::mtx_ptrs<T>& matrix
);

Parameters

vector

A vector of values, whose elements must be one of the following types:

  • double
  • int
  • bool
matrix

A matrix of values, whose elements must be one of the following types:

  • double
  • int
  • bool

Return Value

A CLR array, that may be passed directly to a .NET method, using C++/CLI.

Remarks

The various forms of this template function transform C++ arrays to equivalent .NET arrays.

A large number of specializations exist, for transforming between arrays of similar but different types. See toClr (function) for a complete list.

Requirements

Header: xlpclrconvert.h

See Also

Common Language Runtime support functions | toClr