Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: Events Between Two Controls Pin
Martin#29-Jun-06 10:28
Martin#29-Jun-06 10:28 
GeneralRe: Events Between Two Controls Pin
joshp121729-Jun-06 10:40
joshp121729-Jun-06 10:40 
GeneralRe: Events Between Two Controls Pin
Martin#29-Jun-06 10:43
Martin#29-Jun-06 10:43 
AnswerRe: Events Between Two Controls [modified] Pin
Martin#29-Jun-06 10:55
Martin#29-Jun-06 10:55 
AnswerRe: Events Between Two Controls Pin
Martin#29-Jun-06 9:51
Martin#29-Jun-06 9:51 
AnswerRe: Events Between Two Controls Pin
Josh Smith29-Jun-06 11:17
Josh Smith29-Jun-06 11:17 
Questiondisable javascript on a web browser Pin
ardikus29-Jun-06 7:01
ardikus29-Jun-06 7:01 
QuestionUsing bitwise operations on an abstract enum Pin
Ista29-Jun-06 6:29
Ista29-Jun-06 6:29 
[Flags]
public enum MyTest
{
test1 = 1,
test2 = 2,
test3 = 4
}


evar is the Enum type *** typeof(MyTest) ***
"test2" is one of the enumerated values in "MyTest"

<br />
Enum first = evar as Enum;<br />
                    <br />
object tt1 =  Enum.Parse(t, "test2");<br />
object first2 = first & tt1; // The problem is here<br />


I want to "And" the value out. To determine if it exists. But I will never know which enum I am using.

I noted the line that the problem exists. Does anyone know how I could do a bit operation an a value like that?

Thanks,
Nick

1 line of code equals many bugs. So don't write any!!
AnswerRe: Using bitwise operations on an abstract enum Pin
led mike29-Jun-06 6:38
led mike29-Jun-06 6:38 
GeneralRe: Using bitwise operations on an abstract enum [modified] Pin
Ista29-Jun-06 6:51
Ista29-Jun-06 6:51 
GeneralRe: Using bitwise operations on an abstract enum Pin
leppie29-Jun-06 7:11
leppie29-Jun-06 7:11 
GeneralRe: Using bitwise operations on an abstract enum Pin
led mike29-Jun-06 7:21
led mike29-Jun-06 7:21 
GeneralRe: Using bitwise operations on an abstract enum Pin
Ista29-Jun-06 8:38
Ista29-Jun-06 8:38 
AnswerRe: Using bitwise operations on an abstract enum Pin
Dustin Metzgar29-Jun-06 7:04
Dustin Metzgar29-Jun-06 7:04 
GeneralRe: Using bitwise operations on an abstract enum Pin
Ista29-Jun-06 8:36
Ista29-Jun-06 8:36 
AnswerRe: Using bitwise operations on an abstract enum Pin
BoneSoft29-Jun-06 10:35
BoneSoft29-Jun-06 10:35 
GeneralRe: Using bitwise operations on an abstract enum Pin
Ista30-Jun-06 2:58
Ista30-Jun-06 2:58 
GeneralRe: Using bitwise operations on an abstract enum Pin
BoneSoft30-Jun-06 13:08
BoneSoft30-Jun-06 13:08 
QuestionInheriting Drawing.Image Pin
em00guy29-Jun-06 5:38
em00guy29-Jun-06 5:38 
AnswerRe: Inheriting Drawing.Image Pin
Josh Smith29-Jun-06 6:02
Josh Smith29-Jun-06 6:02 
AnswerRe: Inheriting Drawing.Image Pin
Dave Kreskowiak29-Jun-06 7:53
mveDave Kreskowiak29-Jun-06 7:53 
GeneralRe: Inheriting Drawing.Image Pin
Jun Du29-Jun-06 8:11
Jun Du29-Jun-06 8:11 
GeneralRe: Inheriting Drawing.Image Pin
Dave Kreskowiak29-Jun-06 8:38
mveDave Kreskowiak29-Jun-06 8:38 
GeneralRe: Inheriting Drawing.Image Pin
LongRange.Shooter29-Jun-06 10:47
LongRange.Shooter29-Jun-06 10:47 
GeneralRe: Inheriting Drawing.Image Pin
Dave Kreskowiak29-Jun-06 13:22
mveDave Kreskowiak29-Jun-06 13:22 

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.