diff --git a/lib/core/tools/Test-PSCustomObjectMember.psm1 b/lib/core/tools/Test-PSCustomObjectMember.psm1 new file mode 100644 index 0000000..1edeace --- /dev/null +++ b/lib/core/tools/Test-PSCustomObjectMember.psm1 @@ -0,0 +1,13 @@ +function Test-PSCustomObjectMember() +{ + param( + $PSObject, + $Name + ); + + if ($null -eq $PSObject) { + return $FALSE; + } + + return ([bool]($PSObject.PSobject.Properties.Name -eq $Name)); +}