File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
PSModuleDevelopment/functions/assembly Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 70
70
[switch ]
71
71
$Enum ,
72
72
73
+ [switch ]
74
+ $Static ,
75
+
73
76
[string ]
74
77
$Implements ,
75
78
84
87
{
85
88
$boundEnum = Test-PSFParameterBinding - ParameterName Enum
86
89
$boundPublic = Test-PSFParameterBinding - ParameterName Public
90
+ $boundStatic = Test-PSFParameterBinding - ParameterName Static
87
91
}
88
92
process
89
93
{
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
118
123
$type
119
124
}
123
128
{
124
129
125
130
}
126
- }
131
+ }
You can’t perform that action at this time.
0 commit comments