2003-04-11 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System / System.Net / SocketPermission.cs
index 8fbef73a871241825e06df6424b4aa4a9252b6fd..56faa80056f17f89495dccd67c2292da4d9fe921 100644 (file)
@@ -224,16 +224,7 @@ namespace System.Net
              \r
                        SecurityElement root = new SecurityElement ("IPermission");\r
 \r
-                       root.AddAttribute ("class", this.GetType ().FullName + ", " + \r
-                                                   "System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");\r
-\r
-/*                     \r
-GetType ().Module doesn't work yet with Mono.. (2002-04-27)\r
-We need to do it as below though, because this class can be extended\r
-\r
-                       root.AddAttribute ("class", this.GetType ().FullName + ", " + \r
-                                                   this.GetType ().Module.Assembly.FullName);\r
-*/                                                 \r
+                       root.AddAttribute ("class", this.GetType ().AssemblyQualifiedName);\r
                        root.AddAttribute ("version", "1");\r
                        if (m_noRestriction) {\r
                                root.AddAttribute ("Unrestricted", "true");                             \r