예제 #1
0
 private static bool IsScalar(ITypeSymbol type) =>
 type.DisplayNameMatches("string") ||
 type.DisplayNameMatches("System.String") ||
 !type.AllInterfaces
 .Select(i => i.ConstructedFrom)
 .Any(s => s.DisplayNameMatches("System.Collections.Generic.IEnumerable<T>"));