PC Review


Reply
Thread Tools Rate Thread

Converting StrongName to String

 
 
Doug
Guest
Posts: n/a
 
      16th Feb 2004
I am reading the Public Key attribute from an assembly which is read
into a byte array. I need to get this value into a string but am
having no luck. I've tried variations on the Encoding object, etc but
to no avail. Is there some way to accomplish this?
 
Reply With Quote
 
 
 
 
Bryan Martin
Guest
Posts: n/a
 
      16th Feb 2004
System.Text.Encoding.AscII.GetString(YourByteArray)

Bryan
(E-Mail Removed)

"Doug" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am reading the Public Key attribute from an assembly which is read
> into a byte array. I need to get this value into a string but am
> having no luck. I've tried variations on the Encoding object, etc but
> to no avail. Is there some way to accomplish this?



 
Reply With Quote
 
Doug
Guest
Posts: n/a
 
      17th Feb 2004
Doing that gets me this value:

$$RSA1) m(*2/2vv Td @Yf'pY[@Vy%%
zf'DzxzQ/QKJ#W?weV>P}Ls#:jqE35z^Da}&/x'D5kK>}]>IGBk
9C~q/.(j1!CcUXcs0

when I'm looking for the 16 length value that shows up in the Public
Key Token column in C:\Winnt\Assembly.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting StrongName to String Doug Microsoft C# .NET 2 17th Feb 2004 03:02 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Jay B. Harlow [MVP - Outlook] Microsoft C# .NET 7 1st Aug 2003 06:03 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Mikael Jansson Microsoft C# .NET 0 31st Jul 2003 08:42 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Jon Skeet Microsoft C# .NET 0 31st Jul 2003 08:38 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Frank Oquendo Microsoft C# .NET 0 31st Jul 2003 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.