2004-04-06 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / StrongNameKeyPair.cs
index 487978225cef8d4ca02a51a1253328e93f49a6d3..26fa72d2a2f7d0346c9f2c5df7e45d1fa98f5693 100755 (executable)
@@ -114,7 +114,11 @@ public class StrongNameKeyPair
 
        internal StrongName StrongName () 
        {
-               return new StrongName (rsa);
+               if (rsa != null)
+                       return new StrongName (rsa);
+               if (publicKey != null)
+                       return new StrongName (publicKey);
+               return null;
        }
 }