@@ -41,8 +41,6 @@ private void AddFunctionCall(Func<FunctionSequenceExecutionContext, IEnumerable<
4141
4242
4343
44-
45-
4644 /// <summary>
4745 /// Selects types are decorated with a specific custom attribut.
4846 /// </summary>
@@ -53,6 +51,14 @@ public ConditionList HaveCustomAttribute(Type attribute)
5351 AddFunctionCall ( x => FunctionDelegates . HaveCustomAttribute ( x , attribute , true ) ) ;
5452 return CreateConditionList ( ) ;
5553 }
54+ /// <summary>
55+ /// Selects types are decorated with a specific custom attribut.
56+ /// </summary>
57+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
58+ public ConditionList HaveCustomAttribute < T > ( )
59+ {
60+ return HaveCustomAttribute ( typeof ( T ) ) ;
61+ }
5662
5763 /// <summary>
5864 /// Selects types that are not decorated with a specific custom attribute.
@@ -64,6 +70,14 @@ public ConditionList NotHaveCustomAttribute(Type attribute)
6470 AddFunctionCall ( x => FunctionDelegates . HaveCustomAttribute ( x , attribute , false ) ) ;
6571 return CreateConditionList ( ) ;
6672 }
73+ /// <summary>
74+ /// Selects types that are not decorated with a specific custom attribute.
75+ /// </summary>
76+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
77+ public ConditionList NotHaveCustomAttribute < T > ( )
78+ {
79+ return NotHaveCustomAttribute ( typeof ( T ) ) ;
80+ }
6781
6882 /// <summary>
6983 /// Selects types that are decorated with a specific custom attribute or derived one.
@@ -75,6 +89,14 @@ public ConditionList HaveCustomAttributeOrInherit(Type attribute)
7589 AddFunctionCall ( x => FunctionDelegates . HaveCustomAttributeOrInherit ( x , attribute , true ) ) ;
7690 return CreateConditionList ( ) ;
7791 }
92+ /// <summary>
93+ /// Selects types that are decorated with a specific custom attribute or derived one.
94+ /// </summary>
95+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
96+ public ConditionList HaveCustomAttributeOrInherit < T > ( )
97+ {
98+ return HaveCustomAttributeOrInherit ( typeof ( T ) ) ;
99+ }
78100
79101 /// <summary>
80102 /// Selects types are not decorated with a specific custom attribute or derived one.
@@ -86,6 +108,14 @@ public ConditionList NotHaveCustomAttributeOrInherit(Type attribute)
86108 AddFunctionCall ( x => FunctionDelegates . HaveCustomAttributeOrInherit ( x , attribute , false ) ) ;
87109 return CreateConditionList ( ) ;
88110 }
111+ /// <summary>
112+ /// Selects types are not decorated with a specific custom attribute or derived one.
113+ /// </summary>
114+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
115+ public ConditionList NotHaveCustomAttributeOrInherit < T > ( )
116+ {
117+ return NotHaveCustomAttributeOrInherit ( typeof ( T ) ) ;
118+ }
89119
90120 /// <summary>
91121 /// Selects types that inherit a particular type.
@@ -94,9 +124,17 @@ public ConditionList NotHaveCustomAttributeOrInherit(Type attribute)
94124 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
95125 public ConditionList Inherit ( Type type )
96126 {
97- AddFunctionCall ( x => FunctionDelegates . Inherits ( x , type , true ) ) ;
127+ AddFunctionCall ( x => FunctionDelegates . Inherit ( x , type , true ) ) ;
98128 return CreateConditionList ( ) ;
99129 }
130+ /// <summary>
131+ /// Selects types that inherit a particular type.
132+ /// </summary>
133+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
134+ public ConditionList Inherit < T > ( )
135+ {
136+ return Inherit ( typeof ( T ) ) ;
137+ }
100138
101139 /// <summary>
102140 /// Selects types that do not inherit a particular type.
@@ -105,9 +143,17 @@ public ConditionList Inherit(Type type)
105143 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
106144 public ConditionList NotInherit ( Type type )
107145 {
108- AddFunctionCall ( x => FunctionDelegates . Inherits ( x , type , false ) ) ;
146+ AddFunctionCall ( x => FunctionDelegates . Inherit ( x , type , false ) ) ;
109147 return CreateConditionList ( ) ;
110148 }
149+ /// <summary>
150+ /// Selects types that do not inherit a particular type.
151+ /// </summary>
152+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
153+ public ConditionList NotInherit < T > ( )
154+ {
155+ return NotInherit ( typeof ( T ) ) ;
156+ }
111157
112158 /// <summary>
113159 /// Selects types that implement a particular interface.
@@ -116,9 +162,17 @@ public ConditionList NotInherit(Type type)
116162 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
117163 public ConditionList ImplementInterface ( Type interfaceType )
118164 {
119- AddFunctionCall ( x => FunctionDelegates . ImplementsInterface ( x , interfaceType , true ) ) ;
165+ AddFunctionCall ( x => FunctionDelegates . ImplementInterface ( x , interfaceType , true ) ) ;
120166 return CreateConditionList ( ) ;
121167 }
168+ /// <summary>
169+ /// Selects types that implement a particular interface.
170+ /// </summary>
171+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
172+ public ConditionList ImplementInterface < T > ( )
173+ {
174+ return ImplementInterface ( typeof ( T ) ) ;
175+ }
122176
123177 /// <summary>
124178 /// Selects types that do not implement a particular interface.
@@ -127,11 +181,19 @@ public ConditionList ImplementInterface(Type interfaceType)
127181 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
128182 public ConditionList NotImplementInterface ( Type interfaceType )
129183 {
130- AddFunctionCall ( x => FunctionDelegates . ImplementsInterface ( x , interfaceType , false ) ) ;
184+ AddFunctionCall ( x => FunctionDelegates . ImplementInterface ( x , interfaceType , false ) ) ;
131185 return CreateConditionList ( ) ;
132186 }
133-
134-
187+ /// <summary>
188+ /// Selects types that do not implement a particular interface.
189+ /// </summary>
190+ /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
191+ public ConditionList NotImplementInterface < T > ( )
192+ {
193+ return NotImplementInterface ( typeof ( T ) ) ;
194+ }
195+
196+
135197
136198 /// <summary>
137199 /// Selects types that meet a custom rule.
0 commit comments