N
Nicolas Fleury
Hi,
I have a field named "BaseClasses" in C++ as in the following simplified
code:
using Collections::Generic::List;
namespace A2M { namespace LipIntrospection {
public ref class BaseClassInfo
{
...
};
public ref class ClassInfo
{
public:
List<BaseClassInfo^> BaseClasses;
...
};
}}
The problem is that when "BaseClasses" is accessed in C#, I get an error
"is not supported in the language". I'm able to use the BaseClassInfo
class without problem and I'm also able to define a List<BaseClassInfo>
in C#. Out of curiosity, I compared the types of the list in C# and C++
and I got the following:
"System.Collections.Generic.List`1[[A2M.LipIntrospection.BaseClassInfo,
LipIntrospection, Version=1.0.2196.29053, Culture=neutral,
PublicKeyToken=null]]"
"System.Collections.Generic.List`1[[A2M.LipIntrospection.BaseClassInfo,
LipIntrospection, Version=1.0.2196.29233, Culture=neutral,
PublicKeyToken=null]]"
Is it possible that C++ and C# are using different versions of the
generic list?
Note that I'm pretty new to .Net and C#, so maybe I'm missing something?
Thx and regards,
Nicolas Fleury
I have a field named "BaseClasses" in C++ as in the following simplified
code:
using Collections::Generic::List;
namespace A2M { namespace LipIntrospection {
public ref class BaseClassInfo
{
...
};
public ref class ClassInfo
{
public:
List<BaseClassInfo^> BaseClasses;
...
};
}}
The problem is that when "BaseClasses" is accessed in C#, I get an error
"is not supported in the language". I'm able to use the BaseClassInfo
class without problem and I'm also able to define a List<BaseClassInfo>
in C#. Out of curiosity, I compared the types of the list in C# and C++
and I got the following:
"System.Collections.Generic.List`1[[A2M.LipIntrospection.BaseClassInfo,
LipIntrospection, Version=1.0.2196.29053, Culture=neutral,
PublicKeyToken=null]]"
"System.Collections.Generic.List`1[[A2M.LipIntrospection.BaseClassInfo,
LipIntrospection, Version=1.0.2196.29233, Culture=neutral,
PublicKeyToken=null]]"
Is it possible that C++ and C# are using different versions of the
generic list?
Note that I'm pretty new to .Net and C#, so maybe I'm missing something?
Thx and regards,
Nicolas Fleury