Esempio n. 1
0
 public bool MatchesParameterCount(RuntimeMember runtimeMember)
 {
     return runtimeMember.MatchesParameterCount(parameterCount);
 }
Esempio n. 2
0
 bool Matches(RuntimeMember runtimeMember)
 {
     if (!runtimeMember.MatchesParameterCount(parameterCount)) return false;
     if (parameterTypes != null) {
         for (int i = 0; i < parameterCount; i++) {
             if (runtimeMember.GetParameterType(i) != parameterTypes[i]) return false;
         }
     }
     if (parameterIdNames != null) {
         foreach (var name in parameterIdNames) {
             if (!HasMatchingParameter(runtimeMember, name)) return false;
         }
     }
     return true;
 }
Esempio n. 3
0
 bool Matches(RuntimeMember runtimeMember)
 {
     if (!runtimeMember.MatchesParameterCount(parameterCount)) return false;
     if (parameterTypes == null) return true;
     for (int i = 0; i < parameterCount; i++) {
         if (runtimeMember.GetParameterType(i) != parameterTypes[i]) return false;
     }
     return true;
 }