dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Permissions


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Permissions StrongNamePublicKeyBlob.cs, 1.2, 1.3
Date: Thu, 21 Aug 2003 01:37:38 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Permissions
In directory subversions:/tmp/cvs-serv2842/runtime/System/Security/Permissions

Modified Files:
        StrongNamePublicKeyBlob.cs 
Log Message:


Implement missing TODO's in "System.Security.Policy".


Index: StrongNamePublicKeyBlob.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Permissions/StrongNamePublicKeyBlob.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** StrongNamePublicKeyBlob.cs  29 May 2003 03:12:58 -0000      1.2
--- StrongNamePublicKeyBlob.cs  21 Aug 2003 05:37:36 -0000      1.3
***************
*** 112,115 ****
--- 112,131 ----
                        }
  
+       // Convert a byte buffer into a hex string.
+       internal static String ToHex(byte[] buffer)
+                       {
+                               if(buffer == null)
+                               {
+                                       return String.Empty;
+                               }
+                               StringBuilder builder = new StringBuilder();
+                               int posn;
+                               for(posn = 0; posn < buffer.Length; ++posn)
+                               {
+                                       BitConverter.AppendHex(builder, 
buffer[posn]);
+                               }
+                               return builder.ToString();
+                       }
+ 
        // Determine if two objects are equal.
        public override bool Equals(Object obj)
***************
*** 149,159 ****
        public override String ToString()
                        {
!                               StringBuilder builder = new StringBuilder();
!                               int posn;
!                               for(posn = 0; posn < blob.Length; ++posn)
!                               {
!                                       BitConverter.AppendHex(builder, 
blob[posn]);
!                               }
!                               return builder.ToString();
                        }
  
--- 165,169 ----
        public override String ToString()
                        {
!                               return ToHex(blob);
                        }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]