FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PyExport · pythonnet/pythonnet Wiki · GitHub

Victor edited this page May 1, 2020 · 1 revision

By default any public .NET type is visible to Python. If you want to hide .NET type from Python (for example because its conflicts with an existing Python type), you can mark it with with [PyExport(false)] attribute:

[Python.Runtime.PyExport(false)]
public class IamInvisibleToPython
{
  ...
}

You can hide your entire assembly by applying that attribute to it:

[assembly: Python.Runtime.PyExport(false)]

Wiki pages Pages 13

Clone this wiki locally


Back | FazBrowse Home | New Git URL