O
Ole Andre Karlson
Hi
Im using the generic constructs provided by the Gyro
installation.
I want to create an object of a generic class parameter,
my code goes something like this:
class Node<T> where T : Node<T> {
....
T temp = new T(); <- Error
....
}
class City : Node<City> {
....
}
This isn't legal, is there anyway to work around this, so
I can create a T object?
thanks
Ole Andre Karlson
Im using the generic constructs provided by the Gyro
installation.
I want to create an object of a generic class parameter,
my code goes something like this:
class Node<T> where T : Node<T> {
....
T temp = new T(); <- Error
....
}
class City : Node<City> {
....
}
This isn't legal, is there anyway to work around this, so
I can create a T object?
thanks
Ole Andre Karlson