types/String.Types.ps1xml
<?xml version="1.0" encoding="utf-8" ?>
<Types> <Type> <Name>System.String</Name> <Members> <ScriptMethod> <Name>Permutations</Name> <Script> Get-Permutation $this -Words </Script> </ScriptMethod> <ScriptMethod> <Name>FromBase64</Name> <Script> ConvertFrom-Base64 $this </Script> </ScriptMethod> <ScriptMethod> <Name>ToBase64</Name> <Script> ConvertTo-Base64 $this </Script> </ScriptMethod> <ScriptMethod> <Name>ToMoney</Name> <Script> Format-MoneyValue $this </Script> </ScriptMethod> </Members> </Type> <Type> <Name>System.Security.SecureString</Name> <Members> <ScriptMethod> <Name>ToPlainText</Name> <Script> ConvertTo-PlainText $this </Script> </ScriptMethod> </Members> </Type> </Types> |