Export class from module

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Toru Koido Toru Koido 11 months, 4 weeks ago.

  • Author
    Posts
  • #30031
    Profile photo of Adam Weigert
    Adam Weigert
    Participant

    Is it possible to export a PSv5 class from a module like we can with functions?

  • #30034
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Not in the current release.

  • #37339
    Profile photo of Toru Koido
    Toru Koido
    Participant

    Use "using module .\MyClass.psm1"

You must be logged in to reply to this topic.