Closed brunoyin closed 4 years ago
There is a way to retrieve policy defaults from PowerShell without breaking the AerospikeClient API.
https://www.catapultsystems.com/blogs/using-non-cls-compliant-types-in-powershell/
There is no good reason to be non CLS compliant. No good reason to have a public property and public variable with the same name.
I would guess that the original author accidentally made the variables with the same names public, the variables normally should be privately especially when you have a public property with an identical name.
The public policy variables and public policy properties have differ only in first character lower/upper cases. This is not Common Language Specification (CLS) compliant. And It does not work in Powershell.
By simply renaming Default to DefaultProp correct the problem