S
Smithers
How can I implement the following pseudocode in a switch block? Notice it
would need to switch on the type of interface implemented in currentObject.
if (currentObject is ISomeInterface01)
{
// do something
}
if (currentObject is ISomeInterface02)
{
// do something else
}
if (currentObject is ISomeInterface03)
{
// do some other thing
}
Otherwise, throw a new exception
Thanks!
would need to switch on the type of interface implemented in currentObject.
if (currentObject is ISomeInterface01)
{
// do something
}
if (currentObject is ISomeInterface02)
{
// do something else
}
if (currentObject is ISomeInterface03)
{
// do some other thing
}
Otherwise, throw a new exception
Thanks!