public bool TypesMatch(Type cSharpPropertytype)
 {
     return
         (typeof(IEnumerable).IsAssignableFrom(cSharpPropertytype) &&
          cSharpPropertytype.IsGenericType &&
          cSharpPropertytype.GenericTypeArguments.Length == 1 &&
          ClassNameMatcher.NamesMatch(cSharpPropertytype.GenericTypeArguments[0].Name, ClassName));
 }
Esempio n. 2
0
 public bool TypesMatch(Type cSharpPropertytype) =>
 ClassNameMatcher.NamesMatch(cSharpPropertytype.Name, ClassName);     // also check for null
 static bool MatchesAtAll(Type type, GivenClass simpleExcelClass)
 {
     return
         (type.IsInterface &&
          ClassNameMatcher.NamesMatch(type.Name, simpleExcelClass.Name));
 }