R
RYoung
Hello all,
Given this C# generic class definition:
class Command<Key, Data>
{
BerkeleyParameter<Key> key;
BerkeleyParameter<Data> data;
public void AddParameters(BerkeleyParameter<Key> key,
BerkeleyParameter<Data> data)
{
this.key = key;
this.data = data;
}
}
Can someone please show me the C++/CL definition? The BerkeleyParameter
field is also a generic class which I've already got as the following:
generic <class T>
public ref class BerkeleyParameter
{
private:
T _value;
public:
array<unsigned char>^ Serialize();
void Deserialize(array<unsigned char>^ buffer);
public:
BerkeleyParameter(T t);
property T Value{ T get(); void set(T value); }
};
Any help is appreciated,
Ron
Given this C# generic class definition:
class Command<Key, Data>
{
BerkeleyParameter<Key> key;
BerkeleyParameter<Data> data;
public void AddParameters(BerkeleyParameter<Key> key,
BerkeleyParameter<Data> data)
{
this.key = key;
this.data = data;
}
}
Can someone please show me the C++/CL definition? The BerkeleyParameter
field is also a generic class which I've already got as the following:
generic <class T>
public ref class BerkeleyParameter
{
private:
T _value;
public:
array<unsigned char>^ Serialize();
void Deserialize(array<unsigned char>^ buffer);
public:
BerkeleyParameter(T t);
property T Value{ T get(); void set(T value); }
};
Any help is appreciated,
Ron