Interfaces in WMF5

Welcome Forums General PowerShell Q&A Interfaces in WMF5

This topic contains 1 reply, has 2 voices, and was last updated by

3 years ago.

  • Author
  • #44892

    Topics: 7
    Replies: 11
    Points: 0
    Rank: Member

    I've been messing about with some of the new class based programming mainly for DSC resources. I've seen how to do most of the OOP programming such as classes, inheritance, get/set, properties, methods.

    Does anyone know if there is a native way to use interfaces in the new powershell?

  • #44908

    Topics: 9
    Replies: 2322
    Points: 0
    Rank: Member

    As I recall, you can implement interfaces, but you can't define new ones. Not sure if they'll add that in the future or not.

The topic ‘Interfaces in WMF5’ is closed to new replies.