This is more a VFPer learning .Net instead of VFP and .Net.
I've started a C# class and I'm having some difficulty with operator overloading.
It's a card game (great real-world example, huh) with a Deck class and a Hand class. Both have card arrays that contain card objects. I'm trying to overload the + operator of the Hand class so that I can get a card from the deck array into the hand array. This is a requirement of the lab, not something I decided to do on my own.
Hand h1 = new Hand();
Deck d = new Deck();
//Should add a card object to h1.Cards array
h1+= d.DealCard();
Anybody? Anybody? Bueller?
Thanks,
E.R.
Regards,
E.R. Gilmore