@@ -12,7 +12,7 @@ public sealed partial class Condition
1212 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
1313 public ConditionList HaveName ( string name )
1414 {
15- AddFunctionCall ( x => FunctionDelegates . HaveName ( x , name , true ) ) ;
15+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , name , true ) ) ;
1616 return CreateConditionList ( ) ;
1717 }
1818
@@ -23,7 +23,7 @@ public ConditionList HaveName(string name)
2323 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
2424 public ConditionList NotHaveName ( string name )
2525 {
26- AddFunctionCall ( x => FunctionDelegates . HaveName ( x , name , false ) ) ;
26+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveName ( context , inputTypes , name , false ) ) ;
2727 return CreateConditionList ( ) ;
2828 }
2929
@@ -56,7 +56,7 @@ public ConditionList NotHaveNameMatching(string pattern)
5656 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
5757 public ConditionList HaveNameStartingWith ( string start )
5858 {
59- AddFunctionCall ( x => FunctionDelegates . HaveNameStartingWith ( x , start , true ) ) ;
59+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , start , true ) ) ;
6060 return CreateConditionList ( ) ;
6161 }
6262
@@ -67,33 +67,9 @@ public ConditionList HaveNameStartingWith(string start)
6767 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
6868 public ConditionList NotHaveNameStartingWith ( string start )
6969 {
70- AddFunctionCall ( x => FunctionDelegates . HaveNameStartingWith ( x , start , false ) ) ;
70+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameStartingWith ( context , inputTypes , start , false ) ) ;
7171 return CreateConditionList ( ) ;
72- }
73-
74- /// <summary>
75- /// Selects types whose names start with the specified text.
76- /// </summary>
77- /// <param name="start">The text to match against.</param>
78- /// <param name="comparer">The string comparer.</param>
79- /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
80- public ConditionList HaveNameStartingWith ( string start , StringComparison comparer )
81- {
82- AddFunctionCall ( x => FunctionDelegates . HaveNameStartingWith ( x , start , true , comparer ) ) ;
83- return CreateConditionList ( ) ;
84- }
85-
86- /// <summary>
87- /// Selects types whose names do not start with the specified text.
88- /// </summary>
89- /// <param name="start">The text to match against.</param>
90- /// <param name="comparer">The string comparer.</param>
91- /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
92- public ConditionList NotHaveNameStartingWith ( string start , StringComparison comparer )
93- {
94- AddFunctionCall ( x => FunctionDelegates . HaveNameStartingWith ( x , start , false , comparer ) ) ;
95- return CreateConditionList ( ) ;
96- }
72+ }
9773
9874 /// <summary>
9975 /// Selects types whose names do not end with the specified text.
@@ -102,7 +78,7 @@ public ConditionList NotHaveNameStartingWith(string start, StringComparison comp
10278 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
10379 public ConditionList HaveNameEndingWith ( string end )
10480 {
105- AddFunctionCall ( x => FunctionDelegates . HaveNameEndingWith ( x , end , true ) ) ;
81+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , end , true ) ) ;
10682 return CreateConditionList ( ) ;
10783 }
10884
@@ -113,7 +89,7 @@ public ConditionList HaveNameEndingWith(string end)
11389 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
11490 public ConditionList NotHaveNameEndingWith ( string end )
11591 {
116- AddFunctionCall ( x => FunctionDelegates . HaveNameEndingWith ( x , end , false ) ) ;
92+ AddFunctionCall ( ( context , inputTypes ) => FunctionDelegates . HaveNameEndingWith ( context , inputTypes , end , false ) ) ;
11793 return CreateConditionList ( ) ;
11894 }
11995
@@ -123,23 +99,7 @@ public ConditionList NotHaveNameEndingWith(string end)
12399 /// <param name="end">The text to match against.</param>
124100 /// <param name="comparer">The string comparer.</param>
125101 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
126- public ConditionList HaveNameEndingWith ( string end , StringComparison comparer )
127- {
128- AddFunctionCall ( x => FunctionDelegates . HaveNameEndingWith ( x , end , true , comparer ) ) ;
129- return CreateConditionList ( ) ;
130- }
131102
132- /// <summary>
133- /// Selects types whose names do not end with the specified text.
134- /// </summary>
135- /// <param name="end">The text to match against.</param>
136- /// <param name="comparer">The string comparer.</param>
137- /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
138- public ConditionList NotHaveNameEndingWith ( string end , StringComparison comparer )
139- {
140- AddFunctionCall ( x => FunctionDelegates . HaveNameEndingWith ( x , end , false , comparer ) ) ;
141- return CreateConditionList ( ) ;
142- }
143103
144104
145105
@@ -192,7 +152,7 @@ public ConditionList NotResideInNamespaceMatching(string pattern)
192152 /// </summary>
193153 /// <param name="name">The namespace part to match against.</param>
194154 /// <returns>An updated set of predicates that can be applied to a list of types.</returns>
195- public ConditionList ResideInNamespaceStartingWith ( string name )
155+ internal ConditionList ResideInNamespaceStartingWith ( string name )
196156 {
197157 AddFunctionCall ( x => FunctionDelegates . ResideInNamespaceMatching ( x , $ "^{ name } ", true ) ) ;
198158 return CreateConditionList ( ) ;
@@ -203,7 +163,7 @@ public ConditionList ResideInNamespaceStartingWith(string name)
203163 /// </summary>
204164 /// <param name="name">The namespace part to match against.</param>
205165 /// <returns>An updated set of predicates that can be applied to a list of types.</returns>
206- public ConditionList NotResideInNamespaceStartingWith ( string name )
166+ internal ConditionList NotResideInNamespaceStartingWith ( string name )
207167 {
208168 AddFunctionCall ( x => FunctionDelegates . ResideInNamespaceMatching ( x , $ "^{ name } ", false ) ) ;
209169 return CreateConditionList ( ) ;
0 commit comments