예제 #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);
 }