Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: combining Brushes Pin
David Stone23-Aug-02 13:08
sitebuilderDavid Stone23-Aug-02 13:08 
QuestionMinimumSize - what is that for? Pin
manson23-Aug-02 12:19
manson23-Aug-02 12:19 
GeneralEnums Pin
Nnamdi Onyeyiri23-Aug-02 11:14
Nnamdi Onyeyiri23-Aug-02 11:14 
GeneralRe: Enums Pin
Michael Mac23-Aug-02 11:47
Michael Mac23-Aug-02 11:47 
GeneralRe: Enums Pin
leppie24-Aug-02 2:58
leppie24-Aug-02 2:58 
GeneralRe: Enums Pin
Nnamdi Onyeyiri24-Aug-02 3:03
Nnamdi Onyeyiri24-Aug-02 3:03 
GeneralRe: Enums Pin
leppie24-Aug-02 3:24
leppie24-Aug-02 3:24 
GeneralRe: Enums Pin
Paul Ingles25-Aug-02 7:29
Paul Ingles25-Aug-02 7:29 
& is a bitwise and operator, and works something like this (I'm sure I'll be jumped on if I'm wrong here Smile | :)

Ok, assuming that the myStuff variable contains the bit flags, and exists as:

01001001

Now, assuming that Stuff.itemA is set to 00000001 then performing an AND bitwise operator on the two should yield the following

01001001 +
00000001
---------
00000001

The result will only be 1 where both the parameters are 1, so 1+1=1, 0+1=0, 0+0=0 etc.

Consequently the result ought to be itemA again. As a result, both yours and JTJ's version ought to be correct, since they'll both return a result != 0.

--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld

MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446

GeneralRe: Enums Pin
leppie25-Aug-02 7:48
leppie25-Aug-02 7:48 
Generalhelp Pin
imran_rafique23-Aug-02 9:30
imran_rafique23-Aug-02 9:30 
GeneralRe: help Pin
David Stone23-Aug-02 10:02
sitebuilderDavid Stone23-Aug-02 10:02 
Questionis it possible ? Pin
imran_rafique23-Aug-02 9:22
imran_rafique23-Aug-02 9:22 
AnswerRe: is it possible ? Pin
David Stone23-Aug-02 10:05
sitebuilderDavid Stone23-Aug-02 10:05 
GeneralRe: is it possible ? Pin
imran_rafique23-Aug-02 10:31
imran_rafique23-Aug-02 10:31 
GeneralRe: is it possible ? Pin
David Stone23-Aug-02 11:42
sitebuilderDavid Stone23-Aug-02 11:42 
GeneralRe: is it possible ? Pin
Nnamdi Onyeyiri23-Aug-02 11:55
Nnamdi Onyeyiri23-Aug-02 11:55 
GeneralRe: is it possible ? Pin
David Stone23-Aug-02 12:24
sitebuilderDavid Stone23-Aug-02 12:24 
GeneralRe: is it possible ? Pin
imran_rafique23-Aug-02 12:32
imran_rafique23-Aug-02 12:32 
GeneralRe: is it possible ? Pin
David Stone23-Aug-02 12:40
sitebuilderDavid Stone23-Aug-02 12:40 
GeneralRe: is it possible ? Pin
imran_rafique23-Aug-02 13:00
imran_rafique23-Aug-02 13:00 
GeneralRe: is it possible ? Pin
David Stone23-Aug-02 13:02
sitebuilderDavid Stone23-Aug-02 13:02 
GeneralRe: is it possible ? Pin
imran_rafique23-Aug-02 12:36
imran_rafique23-Aug-02 12:36 
GeneralProblem with System.runtime.remoting.channel.tcp library... Pin
Vortex23-Aug-02 8:29
Vortex23-Aug-02 8:29 
GeneralRe: Problem with System.runtime.remoting.channel.tcp library... Pin
James T. Johnson23-Aug-02 8:38
James T. Johnson23-Aug-02 8:38 
GeneralTraceHook or something better Pin
poodull23-Aug-02 6:00
poodull23-Aug-02 6:00 

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.