Click here to Skip to main content
15,902,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deserialize Parts of an XML Pin
Daniel Pfeffer21-Jan-15 2:51
professionalDaniel Pfeffer21-Jan-15 2:51 
AnswerRe: Deserialize Parts of an XML Pin
Gerry Schmitz21-Jan-15 13:00
mveGerry Schmitz21-Jan-15 13:00 
QuestionIE 11 Registry Entries Pin
namerg20-Jan-15 11:43
namerg20-Jan-15 11:43 
AnswerRe: IE 11 Registry Entries Pin
Pete O'Hanlon20-Jan-15 11:50
mvePete O'Hanlon20-Jan-15 11:50 
GeneralRe: IE 11 Registry Entries Pin
namerg20-Jan-15 11:57
namerg20-Jan-15 11:57 
GeneralRe: IE 11 Registry Entries Pin
Pete O'Hanlon20-Jan-15 12:14
mvePete O'Hanlon20-Jan-15 12:14 
GeneralRe: IE 11 Registry Entries Pin
namerg20-Jan-15 14:13
namerg20-Jan-15 14:13 
QuestionHex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 2:04
NJdotnetdev20-Jan-15 2:04 
Following is the working code which decodes UUEncoded information to the correct hex value:

Code:

string input = "MTA0ODU3NjAA=";
byte[] decoded = Convert.FromBase64String(input.TrimEnd(new char[] { '=' }));
String value = ASCIIEncoding.ASCII.GetString(decoded);
int output = Convert.ToInt32(value);
string temp = String.Format("{0:X02}{1:X02}{2:X02}", (output & 0xFF0000FF) >> 0, (output & 0xFF00FF00) >> 8, (output & 0xFFFF0000) >> 16);

Output: temp = "0000A0";

I am looking for help to reverse this process. Input: "0000A0" and get output as: "MTA0ODU3NjAA", since '=' are used for padding only.
AnswerRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 2:50
mveOriginalGriff20-Jan-15 2:50 
GeneralRe: Hex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 3:24
NJdotnetdev20-Jan-15 3:24 
GeneralRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 3:35
mveOriginalGriff20-Jan-15 3:35 
GeneralRe: Hex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 3:43
NJdotnetdev20-Jan-15 3:43 
GeneralRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 4:01
mveOriginalGriff20-Jan-15 4:01 
GeneralRe: Hex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 4:42
NJdotnetdev20-Jan-15 4:42 
GeneralRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 4:57
mveOriginalGriff20-Jan-15 4:57 
GeneralRe: Hex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 5:00
NJdotnetdev20-Jan-15 5:00 
GeneralRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 5:18
mveOriginalGriff20-Jan-15 5:18 
GeneralRe: Hex to UUEncode in C# Pin
NJdotnetdev20-Jan-15 5:41
NJdotnetdev20-Jan-15 5:41 
GeneralRe: Hex to UUEncode in C# Pin
OriginalGriff20-Jan-15 5:43
mveOriginalGriff20-Jan-15 5:43 
QuestionMicrosoft Enterprise Library 5.0 Pin
Member 397562920-Jan-15 1:19
Member 397562920-Jan-15 1:19 
AnswerRe: Microsoft Enterprise Library 5.0 Pin
OriginalGriff20-Jan-15 2:51
mveOriginalGriff20-Jan-15 2:51 
QuestionTraffic laws Project Pin
zayno19-Jan-15 2:45
zayno19-Jan-15 2:45 
AnswerRe: Traffic laws Project Pin
RUs12319-Jan-15 3:07
RUs12319-Jan-15 3:07 
GeneralRe: Traffic laws Project Pin
zayno19-Jan-15 3:13
zayno19-Jan-15 3:13 
GeneralRe: Traffic laws Project Pin
RUs12319-Jan-15 3:21
RUs12319-Jan-15 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.