~/talk

Parameter Classes: Making parameter-binding user friendly

slides:none on file

Parameter Classes claim a reusable way to drive parameter binding: build a class (PowerShell or C#) with multiple constructors to parse strings, relative timestamps, file objects, or preserve the original inputObject, register extra type mappings via a static hashtable, and expose an implicit operator so the parameter behaves like the underlying type. The presenter shows a C# version runs ~2400 ticks vs PowerShell ~5700 ticks for 1,000 conversions, and reports this pattern scales to projects like dbatools (380+ commands); it works but has runspace, ambiguity and performance caveats.

AI-written summary · about

  1. 0:00The problem with binding
  2. 2:57Methods for type conversion
  3. 5:40Implementing parameter classes
  4. 10:04Adding user convenience
  5. 14:04Retaining input metadata
  6. 17:30Extensibility through registry
  7. 21:10PowerShell vs C# performance
  8. 24:30Adding advanced metadata
  9. 28:14Implicit operators and scaling
  10. 35:37Real-world application
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.