Types/OpenPackage.ContentTypeMap/get_TypeMap.ps1
|
<# .SYNOPSIS Gets the TypeMap .DESCRIPTION Gets the TypeMap. Will default to the values in `DefaultTypeMap` #> if ($this.'#TypeMap') { return $this.'#TypeMap' } $typeMap = [Ordered]@{} $defaultTypeMap = $this.DefaultTypeMap foreach ($extension in ($defaultTypeMap.Keys | Sort-Object)) { $typeMap[$extension] = $defaultTypeMap[$extension] } $this | Add-Member NoteProperty $typeMap '#TypeMap' -Force return $typeMap |