Ver Mensaje Individual
  #3  
Antiguo 21-09-2005
rounin rounin is offline
Miembro
 
Registrado: sep 2005
Posts: 43
Reputación: 0
rounin Va por buen camino
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)
Responder Con Cita