I have some c++ code with function return types declared as string^
o开发者_JAVA百科r IEnumerable<String^>^
, what does that mean?
edits: c#->c++/cli
It doesn't mean anything in C#. You're looking at source code for C++/CLI, not C#.
See http://en.wikipedia.org/wiki/C%2B%2B/CLI for a brief introduction.
The carat symbol basically means "this is a GC-tracked reference".
It seems like managed C++, not C#. ^
means managed reference type.
Nothing. It is not valid there in C++. It's a "managed reference" type modifier for C++/CLI, a distinct language.
精彩评论