S
salvatore.difazio
Hi guys,
I've an Enum like this
public Enum Pippo
{
giovanni,
giuseppe,
lino
};
and I would like to use this enum in a switch case like this:
switch(myvariable.PippoType)
{
case Pippo.giovanni:
break:
case Pippo.giuseppe:
break;
case Pippo.lino:
break;
}
Does anybody tell me how can I do that?
I've an Enum like this
public Enum Pippo
{
giovanni,
giuseppe,
lino
};
and I would like to use this enum in a switch case like this:
switch(myvariable.PippoType)
{
case Pippo.giovanni:
break:
case Pippo.giuseppe:
break;
case Pippo.lino:
break;
}
Does anybody tell me how can I do that?