We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95fdad commit e1ad82cCopy full SHA for e1ad82c
1 file changed
PSModuleDevelopment/functions/assembly/Find-PSMDType.ps1
@@ -70,6 +70,9 @@
70
[switch]
71
$Enum,
72
73
+ [switch]
74
+ $Static,
75
+
76
[string]
77
$Implements,
78
@@ -84,6 +87,7 @@
84
87
{
85
88
$boundEnum = Test-PSFParameterBinding -ParameterName Enum
86
89
$boundPublic = Test-PSFParameterBinding -ParameterName Public
90
+ $boundStatic = Test-PSFParameterBinding -ParameterName Static
91
}
92
process
93
@@ -114,6 +118,7 @@
114
118
if ($boundEnum -and ($Enum -ne $type.IsEnum)) { continue }
115
119
if ($InheritsFrom -and ($type.BaseType.FullName -notlike $InheritsFrom)) { continue }
116
120
if ($Attribute -and ($type.CustomAttributes.AttributeType.Name -notlike $Attribute)) { continue }
121
+ if ($boundStatic -and -not($type.IsAbstract -and $type.IsSealed)) { continue }
117
122
123
$type
124
@@ -123,4 +128,4 @@
128
129
125
130
126
-}
131
+}
0 commit comments