|
Interfaces can be cast to other one using as operator (or QueryInterface):
MiLista.Items[i] as INotas,
MiLista.Items[i] as INotas2
(When you cast an object to any class, the result as a pointer will be the same.
But it is wrong for interfaces, and "INotas(MiLista.Items[i])" is not a correct cast)
|