我正在阅读 Inside C# ,我偶然发现了Type.IsAutoClass
.
文档说
true if the string format attribute AutoClass is selected for the Type; otherwise, false.
问题是什么是 AutoClass
以及它如何影响 Type
?
请注意,这是学术问题,在我参与的项目中没有实际用途(据我所知)。
最佳答案
它是 TypeAttributes
的一部分枚举:
AutoClass - LPTSTR is interpreted automatically.
以及备注:
The members of this enumerator class match the CorTypeAttr enumerator as defined in the corhdr.h file.
因此,这用于互操作,即如何解释字符串常量。
顺便一提 - LPTSTR .
关于c# - .net 中的 AutoClass 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14385441/