I've just used it for the first time - consider:
IGameObject
void Update()
IDrawableGameObject : IGameObject
void Draw()
I had a level class which used DrawableGameObjects - I switched this to be IDrawableGameObject's instead to reduce coupling and aid in TDD.
However I of course lose the ability to call Update(..) without c...
Each item has an interface, IItem. As well as this, there is a interface known as IDrawableItem which inherits from Item.
The code below, is trying to draw a drawable item, but cannot as the collection this class stores accepts only IItem. You can add anything that inherits from IItem to this class, but using other methods can only be a...
According to this article about writing shell extensions in .Net, inheriting the shell interfaces as you might naturally do when writing code doesn't work. I've observed this in my own code as well.
Doesn't work:
public interface IPersist {
// stuff specific only to IPersist
}
public interface IPersistFolder : IPersist {
// st...