jhoek / UncommonSense.CBreeze

C#/PowerShell API for the Dynamics NAV C/AL object text format
MIT License
6 stars 4 forks source link

BREAKING: Make boolean parameters more intuitive by using switches instead of [bool]s #105

Closed jhoek closed 6 years ago

jhoek commented 6 years ago

To make the necessary distinction between undefined and explicitly false, use MyInvocation.BoundParameters (from PSCmdlet).

Not bound => value = null bound => value = switch value

Switch value is true by default (if present), but can set to explicitly false using this: -MySwitch:$false

Search for public bool? and public Nullable<bool> in code!