What is AutoClass in .net?

1.6k Views Asked by At

I was reading Inside C#, and i am stumbled upon Type.IsAutoClass.

The documentation says

true if the string format attribute AutoClass is selected for the Type; otherwise, false.

The question is What is AutoClass and how due it impacts a Type?

Note that this is academic question, and there is no practical usage (to best of my knowledge) in projects, I am associated with.

1

There are 1 best solutions below

4
On BEST ANSWER

It is part of the TypeAttributes Enumeration:

AutoClass - LPTSTR is interpreted automatically.

And the remarks:

The members of this enumerator class match the CorTypeAttr enumerator as defined in the corhdr.h file.

So, this is used for interop, in how strings constants are interpreted.

By the way - LPTSTR.