コード例 #1
0
ファイル: Predicates.cs プロジェクト: mdpl11/NetArchTest
 /// <summary>
 /// Selects types that have a specific name.
 /// </summary>
 /// <param name="name">The name of the class to match against.</param>
 /// <returns>An updated set of predicates that can be applied to a list of types.</returns>
 public PredicateList HaveName(params string[] name)
 {
     foreach (var item in name)
     {
         _sequence.AddFunctionCall(FunctionDelegates.HaveName, item, true);
     }
     return(new PredicateList(_types, _sequence));
 }
コード例 #2
0
 /// <summary>
 /// Selects types that have a specific name.
 /// </summary>
 /// <param name="name">The name of the class to match against.</param>
 /// <returns>An updated set of predicates that can be applied to a list of types.</returns>
 public PredicateList HaveName(string name)
 {
     _sequence.AddFunctionCall(FunctionDelegates.HaveName, name, true);
     return(new PredicateList(_types, _sequence));
 }
コード例 #3
0
 /// <summary>
 /// Selects types that have a specific name.
 /// </summary>
 /// <param name="name">The name of the class to match against.</param>
 /// <returns>An updated set of conditions that can be applied to a list of types.</returns>
 public ConditionList HaveName(string name)
 {
     _sequence.AddFunctionCall(FunctionDelegates.HaveName, name, true);
     return(new ConditionList(_types, _should, _sequence));
 }