C#, sometimes I could flush down my boss the toilet [closed]
- by msfanboy
Hello all,
I got a paper of instructions from my boss. One of the instructions is in this order:
Extend the method GetProductIdBy with theShipmentDate
Overload the method GetProductIdBy without theShipmentDate
This is the Method I speak about:
...and theShipmentDate is a DateTime variable
public IProduct GetProductIdBy(string productID)
{
...
return product;
}
You know what I did? this -
public IProduct GetProductIdBy(string productID, DateTime theShipmentDate )
{
...
return product;
}
You know what my boss said? The above is wrong!
I asked him how can I overload a method without a parameter like theShipmentDate ??? That makes no sense, he said that reason in because of the subversion repository... what the fuck??
But he did not tell me whats really right I would have to find out for myself... he just didnt tell me and I am sick of asking him every crap if he cant express himself properly.
How would you manage his instruction?