What is AutoClass in .net?

I read Inside C # and I came across Type.IsAutoClass .

The documentation states

true if Type has an AutoClass string format attribute; otherwise false.

Question: What is AutoClass and how does it affect Type ?

Note that this is an academic issue, and there is no practical use (as far as I know) in the projects with which I am associated.

+6
source share
1 answer

This is part of the TypeAttributes Listing:

AutoClass - LPTSTR is interpreted automatically.

And comments:

The members of this enumeration class correspond to the CorTypeAttr enumerator, as defined in the corhdr.h file.

So, this is used to interact with how string constants are interpreted.

By the way, LPTSTR .

+5
source

All Articles