I have a Method which Takes Int as Input
public void GetMonth(int Month) { }
Now when I call this method I want to make sure that Compiler generates and Error Message when someone enters number which does not fall between 1-12.
e.g
obj.GetMonth(14)--Here it should give error and does not compile
Is it possible ?