|
Post by redhawk04 on Feb 16, 2004 12:33:31 GMT -5
I have created a queue like this br] Queue wsRequests = new Queue(); I also have a structure class that looks like this br]public struct request { public Decimal arrivalTime; public Decimal wsArrivalTime; public Decimal dsArrivalTime; public Decimal wsDeptTime; public Decimal dsDeptTime; public Decimal totalWSTime; public Decimal totalDSTime; public int numRequests; } Defined an object br]request currReq; I wish to create a queue of request objects. I can enqueue the object fine but when I wish to dequeue an object like this it wont let me br] currReq = wsRequests.Dequeue(); My error is cannot implicitly convert object to type requests. Any suggestions? Can I overload an operator here, and how would i do that?
|
|
|
Post by Dangermouse on Feb 16, 2004 15:11:04 GMT -5
|
|