Navigation: X# 文档 > X# 编译器错误和警告
Error XS7042
The DllImport attribute cannot be applied to a method that is generic or contained in a generic type.