Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
Question& in binary numbers ! Pin
Mohammad Dayyan20-Aug-09 3:32
Mohammad Dayyan20-Aug-09 3:32 
AnswerRe: & in binary numbers ! Pin
DaveyM6920-Aug-09 3:43
professionalDaveyM6920-Aug-09 3:43 
GeneralRe: & in binary numbers ! Pin
Mohammad Dayyan20-Aug-09 3:48
Mohammad Dayyan20-Aug-09 3:48 
GeneralRe: & in binary numbers ! Pin
DaveyM6920-Aug-09 3:49
professionalDaveyM6920-Aug-09 3:49 
GeneralRe: & in binary numbers ! Pin
0x3c020-Aug-09 4:09
0x3c020-Aug-09 4:09 
GeneralRe: & in binary numbers ! Pin
0x3c020-Aug-09 3:50
0x3c020-Aug-09 3:50 
GeneralRe: & in binary numbers ! Pin
Luc Pattyn20-Aug-09 5:28
sitebuilderLuc Pattyn20-Aug-09 5:28 
AnswerRe: & in binary numbers ! Pin
Keith Barrow20-Aug-09 3:47
professionalKeith Barrow20-Aug-09 3:47 
I don't think there are any binary literals in c# ( though there are Hex literals e.g. 0x2A). If you must use a binary input the following snippet migh be helpful

const int Base = 2;
 
/To Integer From Binary
int integer = Convert.ToInt32("111", Base);

//To Binary from Integer for output
string binary = Convert.ToString(startVal, Base); 


You can can peform the bitwise and against the ints:
int i = 42;
int j = 42;

int k = i & j;

QuestionSynchronization between online and offline database. [modified] Pin
Member 399406320-Aug-09 3:19
Member 399406320-Aug-09 3:19 
AnswerRe: Synchronization between online and offline database. [modified] Pin
Saksida Bojan20-Aug-09 7:40
Saksida Bojan20-Aug-09 7:40 
AnswerRe: Synchronization between online and offline database. [modified] Pin
Verma Ankit2-Apr-10 2:21
Verma Ankit2-Apr-10 2:21 
QuestionMethodInfo - Get summary - How can i get the methods summary from a method ? Pin
bonzaiholding20-Aug-09 2:50
bonzaiholding20-Aug-09 2:50 
AnswerRe: MethodInfo - Get summary - How can i get the methods summary from a method ? Pin
Luc Pattyn20-Aug-09 3:25
sitebuilderLuc Pattyn20-Aug-09 3:25 
GeneralRe: MethodInfo - Get summary - How can i get the methods summary from a method ? Pin
bonzaiholding20-Aug-09 3:39
bonzaiholding20-Aug-09 3:39 
QuestionError while reading the Private Key as XML String in C# Pin
Jadhav Ajay20-Aug-09 2:11
professionalJadhav Ajay20-Aug-09 2:11 
QuestionToon Production?? Pin
Muammar©20-Aug-09 1:42
Muammar©20-Aug-09 1:42 
AnswerRe: Toon Production?? Pin
OriginalGriff20-Aug-09 1:50
mveOriginalGriff20-Aug-09 1:50 
GeneralRe: Toon Production?? Pin
Muammar©20-Aug-09 1:59
Muammar©20-Aug-09 1:59 
GeneralRe: Toon Production?? Pin
molesworth20-Aug-09 5:19
molesworth20-Aug-09 5:19 
AnswerRe: Toon Production?? Pin
Pete O'Hanlon20-Aug-09 2:11
mvePete O'Hanlon20-Aug-09 2:11 
JokeRe: Toon Production?? Pin
0x3c020-Aug-09 2:21
0x3c020-Aug-09 2:21 
GeneralRe: Toon Production?? Pin
Muammar©20-Aug-09 7:42
Muammar©20-Aug-09 7:42 
GeneralRe: Toon Production?? Pin
Muammar©20-Aug-09 2:26
Muammar©20-Aug-09 2:26 
GeneralRe: Toon Production?? Pin
riced20-Aug-09 12:06
riced20-Aug-09 12:06 
AnswerRe: Toon Production?? Pin
Richard MacCutchan25-Aug-09 10:42
mveRichard MacCutchan25-Aug-09 10:42 

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.