Пример #1
0
 public static bool IsLargeStruct(this ITypeSymbol type, SemanticModel semanticModel, int threshold)
 {
     return(type.IsStruct() && type.ComputeStructSize(semanticModel) is var size && size >= threshold);
 }
Пример #2
0
 public static bool IsLargeStruct(this ITypeSymbol type, Compilation compilation, int threshold)
 {
     return(type.IsStruct() && type.ComputeStructSize(compilation) is var size && size >= threshold);
 }