Hello World, I'm working on a driver and the basic gist/setup of the method is :
public enum
{
cat = 0,
dog = 1
}
public void SpecificChipFunctionality(int x, animals y)
{
}
I want to make the driver so that the user - when calling the method gets some sort of prompt from intellisense suggesting that "cat" should be used. The only way that I know how to do that is:
public void SpecificChipFunctionality(int x, animals y = animals.cat)
{
}
My issue with doing this is I have another method with the same name that takes in a byte, and if I want to call the byte form, Visual Studio converts my input (ex. 0x16) to an int and executes the wrong method.
Is there a way to suggest that a specific value is used without having to set it equal?
Thanks,
woof_woof_bark_bark