been creating a few wcf methods and i have a method called IsValidLogin … there various versions, 1 takes 2 strings, 1 takes an object etc.
Of course in WCF you can’t overload methods can anyone suggest the best way to name these methods..
I was thinking of IsValidLogin1, IsValidLogin2??
But I am open to any suggestions.
When you start adding index numbers to your identifiers, you’re usually doing it wrong.
One way I’ve seen is adding “With” and the parameter names to the name, i.e. IsValidLoginWithUsernamePassword, and IsValidLoginWithToken (assuming your object is some kind of authentication token). These are kind of long though.
I’d just call the methods IsValidUsernamePassword and IsValidToken.