I am using a simple error handling and I think I have everything else right, how would I make the if statement check to see if the value is equal to this array?
String[] values = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };
public String Value
{
get
{
return _value;
}
set
{
if (value != values)
throw new Exception("Invalid Card Value");
_value = value;
}
}