R
Richard Lewis Haggard
I have a situation where I have to combine an enumerated value with an
interface. How can this be done?
namespace Stuff
{
public interface IThing
{
// This doesn't work, of course...
public enum EnumeratedStuff
{
None, First, Second
}
bool SomeMethod();
}
}
namespace Stuff
{
public class Thing : IThing
{
// Implement the enumerated EnumeratedStuff.
bool SomeMethod()
{
return true;
}
}
}
interface. How can this be done?
namespace Stuff
{
public interface IThing
{
// This doesn't work, of course...
public enum EnumeratedStuff
{
None, First, Second
}
bool SomeMethod();
}
}
namespace Stuff
{
public class Thing : IThing
{
// Implement the enumerated EnumeratedStuff.
bool SomeMethod()
{
return true;
}
}
}