Author: davide
Date: 2006-12-17 12:19:57 -0500 (Sun, 17 Dec 2006)
New Revision: 69607

Modified:
   trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
Log:
ChangeToSSLSocket made simpler

Modified: trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs        2006-12-17 
17:04:53 UTC (rev 69606)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpClient.cs        2006-12-17 
17:19:57 UTC (rev 69607)
@@ -631,13 +631,10 @@
                }
 
                private bool ChangeToSSLSocket () {
-#if TARGET_JVM
-                       java.lang.Class c = vmw.common.TypeUtils.ToClass 
(stream);
-                       java.lang.reflect.Method m = c.getMethod 
("ChangeToSSLSocket", null);
-                       m.invoke (stream, new object [] { });
+#if TARGET_JVM
+                       stream.ChangeToSSLSocket ();
 
                        return true;
-
 #else
                        throw new NotImplementedException ();
 #endif

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to