S
scott
hi all, in c++ i could overload an == opperator and then using a template
class i could compare the 2 classes using the overloaded opperators and you
did not have to tell the template what class you were dealign wtih.
in c# iv got a class that has overloaded opperators. later on i them come to
compare them, but the values being compared are objects.
e.g.
class House
{
// overloaded opperators
}
class Town
{
public void (object data)
{
object currentData;
// compare the objects to see if they are the same.
}
when i compare the objects i want to compare them using the overloaded
opperators iv used but they don't get called.
Any help would be grate
Thx Scott
class i could compare the 2 classes using the overloaded opperators and you
did not have to tell the template what class you were dealign wtih.
in c# iv got a class that has overloaded opperators. later on i them come to
compare them, but the values being compared are objects.
e.g.
class House
{
// overloaded opperators
}
class Town
{
public void (object data)
{
object currentData;
// compare the objects to see if they are the same.
}
when i compare the objects i want to compare them using the overloaded
opperators iv used but they don't get called.
Any help would be grate
Thx Scott