If TypeOf miControl Is ISerializable Then
Saludos Leonardo _____ De: Carlos Marcelo Santos [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 23 de Agosto de 2007 09:53 p.m. Para: [email protected] Asunto: [puntonet] Saber si un objeto implementa una interface (Ex: OT rdp) * Replies will be sent through Spamex to [email protected] * For additional info click -> www.spamex.com/i/?v=13137989 Hola Diego: Gracias por prolijar el subject. No funciona para este caso If miControl Is ISerializable Then Da error Y ahora probé If miControl = ISerializable Then También da error Gracias. Carlos Marcelo Santos. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Diego Jancic Sent: Jueves, 23 de Agosto de 2007 09:42 p.m. To: [email protected] Subject: [puntonet] Saber si un objeto implementa una interface (Ex: OT rdp) Hola, Cambie el asunto del email para que se entienda un poco mas de que estamos hablando Según un traductor de C# a VB.NET, esto: bool a = myControl is ISerializable; se traduce a esto: Dim a As Boolean = (myControl = ISerializable) Espero que te sirva. Saludos, Diego _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Marcelo Santos Sent: Jueves, 23 de Agosto de 2007 09:34 p.m. To: [email protected] Subject: [puntonet] OT rdp Hola Gente: ¿Cómo se pregunta en VB si un objeto implementa una interface? Lo que en C# sería if (myControl is ISerializable) Gracias. Carlos Marcelo Santos. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007 06:51 p.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007 06:51 p.m. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007 06:51 p.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007 06:51 p.m.
