LoadNETType

LoadNETType["type"]
loads the specified type into the .NET runtime and returns a NETType expression that can be used to identify the type.

LoadNETType["type", assembly]
loads the type from the given assembly.

DetailsDetails

  • To use LoadNETType, you first need to load .NET/Link using Needs["NETLink`"].
  • LoadNETType can load any of the types defined in .NET: classes, interfaces, structs (value types), enumerations, and delegates. The assembly in which the type is defined must have been previously loaded using LoadNETAssembly.
  • The following options can be given:
  • StaticsVisibleFalsemake static methods and fields accessible by just their names, not in a special context
    AllowShortContextTruemake static methods and fields accessible only in the context that mirrors the full hierarchical namespace name
  • The assembly argument can be an assembly name, a NETAssembly expression, a .NET Assembly object, or a path or URL to an assembly file. If it is an assembly name, the assembly must already have been loaded.
New to Mathematica? Find your learning path »
Have a question? Ask support »