Transforms/guid.ps1
[CmdletBinding()] param ( [Parameter()] [Switch] $FullLoad ) if($FullLoad) { } $prop=[Ordered]@{ SupportedAttributes=@('objectGuid') OnLoad = $null OnSave = $null } $codeBlock = new-object PSCustomObject -property $prop $codeBlock.OnLoad = { param( [byte[][]]$Values ) Process { foreach($Value in $Values) { New-Object System.Guid(,$Value) } } } $codeBlock.OnSave = { param( [Guid[]]$Values ) Process { foreach($value in $values) { $value.ToByteArray() } } } $codeBlock |