Interfaces in WMF5

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Dave Wyatt Dave Wyatt 5 months, 2 weeks ago.

  • Author
    Posts
  • #44892
    Profile photo of Michael Willis
    Michael Willis
    Participant

    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
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

    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.

You must be logged in to reply to this topic.