CLI value structs used in C#

D

DaTurk

Hi,

This might be something stupid, but I have a couple value structs that
I'm using in my CLI layer. I pass them up via callbacks to the c#
layer. In the c# layer, it wants my callback methods to have the
agurment type as ValueType, rather then the actual type, am I missing
something?
 
J

Jochen Kalmbach [MVP]

Hi DaTurk!
This might be something stupid, but I have a couple value structs that
I'm using in my CLI layer. I pass them up via callbacks to the c#
layer. In the c# layer, it wants my callback methods to have the
agurment type as ValueType, rather then the actual type, am I missing
something?

Are your value types inside a namespace?
C# can only handle types in namespaces...

For example:

namespace Foo
{
public value Bar
{
public: int i;
};
}

Greetings
Jochen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top