NETLinkConstantsPACKAGE_CONTEXT Field

The Wolfram Language package context for the .NET/Link support functions.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public const string PACKAGE_CONTEXT = "NETLink`"

Field Value

String

Remarks

Using this is preferable to hard-coding "NETLink`" in your code if you need to explicitly load the .NET/Link package file.
C#
BAD:  ml.Evaluate("Needs[\"NETLink`\"]");
GOOD: ml.Evaluate("Needs[\"" + NETLinkConstants.PACKAGE_CONTEXT + "\"]");

See Also