Posted on 2009-06-30
I have a method which I want overload (I hope that is the right term to use here).
However I want to overload the method with the same number of parameters.
public bool AEvalidation(string PNo, DateTime DatePatJoined)
public bool AEvalidation(string PNo, int HouseNo)
This returned an error because I had the same number of overloads in my method.
Therefore I had no choice but to use
public bool AEvalidation(string PNo, DateTime DatePatJoined, bool CheckDigit)
This work around solved the porblem. But is there a better approach which I should have taken?