Parameter Classes: Making parameter-binding user friendly

By Friedrich Weinmann

Elevator Pitch

Asking for a specific data type as input can be very unintuitive and limiting for the user. Accepting anything and parsing in script however is hard to maintain. Enter Parameter Classes, introducing a flexible data adapter that can dynamically convert input as part of the parameter binding process.

Description

This session dives into the parameter binding procedure of PowerShell. We will then cover how to …

  • … accept many types of input without necessarily accepting all of them

  • … accept and process input types that are not available when creating the class itself

  • … avoid feature creep and loss of control over your parameter classes

  • … design for useful and intuitive to use parameter classes

  • … allow others to extend your input interpretation, without having them disassemble your code

Note: In order to fully appreciate this session you should bring basic C# knowledge

Notes

This session is available in English or German