これは,Wolfram言語の以前のバージョンに基
づくMathematica 6のためのドキュメントです.
最新のドキュメント(バージョン11.1)もご覧ください.

MakeNETObject

MakeNETObject[expr]
constructs a .NET object that represents the given Mathematica expression.
MakeNETObject[expr, type]
creates an object of the specified type from expr.
  • MakeNETObject accepts numbers, True/False, strings, and lists of these, up to 3-deep.
  • This is a shortcut to calling NETNew, and it is especially useful for arrays, as the array object can be created and initialized with values in a single call.
  • Use the type argument to force a nonstandard type.
  • For example, MakeNETObject[{1, 2, 3}] will create an array of int (type System.Int32[]). If you want an array of Int16, use MakeNETObject[{1, 2, 3}, "System.Int16[]"].