Click here to Skip to main content
15,911,360 members
Home / Discussions / C#
   

C#

 
AnswerRe: P/Invoke an array that is a field in a struct. Pin
_Erik_4-Jan-11 6:02
_Erik_4-Jan-11 6:02 
Questioncheck credentials on remote machine Pin
User 73794393-Jan-11 10:14
User 73794393-Jan-11 10:14 
QuestionPipe operator Pin
William Winner3-Jan-11 8:41
William Winner3-Jan-11 8:41 
AnswerRe: Pipe operator Pin
Ian Shlasko3-Jan-11 9:12
Ian Shlasko3-Jan-11 9:12 
GeneralRe: Pipe operator Pin
William Winner3-Jan-11 10:14
William Winner3-Jan-11 10:14 
GeneralRe: Pipe operator Pin
PIEBALDconsult3-Jan-11 11:45
mvePIEBALDconsult3-Jan-11 11:45 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 11:56
Ian Shlasko3-Jan-11 11:56 
GeneralRe: Pipe operator Pin
AspDotNetDev3-Jan-11 13:40
protectorAspDotNetDev3-Jan-11 13:40 
That does make sense, depending on your meaning. If you mean this:
C#
public enum MyEnum
{
    x = 0,
    a = 1,
    b = 2,
    c = 4,
    d = 8
}

Then yeah, it works perfectly fine. If you meant this:
C#
[Flags]
public enum MyEnum
{
    x = 0,
    a = 1,
    b = 2,
    c = 4,
    d = 8
}

The "Flags" attribute is not actually necessary for the bitwise operations to be successful. It just adds intellisense and changes the behavior of ToString (e.g., it may output "a, d" rather than "9").

GeneralRe: Pipe operator Pin
PIEBALDconsult3-Jan-11 14:22
mvePIEBALDconsult3-Jan-11 14:22 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 15:58
Ian Shlasko3-Jan-11 15:58 
GeneralRe: Pipe operator Pin
AspDotNetDev4-Jan-11 20:35
protectorAspDotNetDev4-Jan-11 20:35 
GeneralRe: Pipe operator Pin
AspDotNetDev20-Jan-11 14:05
protectorAspDotNetDev20-Jan-11 14:05 
AnswerRe: Pipe operator Pin
Luc Pattyn3-Jan-11 9:12
sitebuilderLuc Pattyn3-Jan-11 9:12 
GeneralRe: Pipe operator Pin
GlobX3-Jan-11 19:41
GlobX3-Jan-11 19:41 
AnswerRe: Pipe operator [modified] Pin
Pete O'Hanlon3-Jan-11 9:17
mvePete O'Hanlon3-Jan-11 9:17 
GeneralRe: Pipe operator Pin
Luc Pattyn3-Jan-11 9:23
sitebuilderLuc Pattyn3-Jan-11 9:23 
GeneralRe: Pipe operator Pin
Pete O'Hanlon3-Jan-11 9:26
mvePete O'Hanlon3-Jan-11 9:26 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 9:29
Ian Shlasko3-Jan-11 9:29 
GeneralRe: Pipe operator Pin
Luc Pattyn3-Jan-11 9:35
sitebuilderLuc Pattyn3-Jan-11 9:35 
GeneralRe: Pipe operator Pin
Ian Shlasko3-Jan-11 10:21
Ian Shlasko3-Jan-11 10:21 
QuestionDLL reference fails after first build Pin
JacquesDP3-Jan-11 3:34
JacquesDP3-Jan-11 3:34 
AnswerRe: DLL reference fails after first build Pin
fjdiewornncalwe3-Jan-11 4:53
professionalfjdiewornncalwe3-Jan-11 4:53 
GeneralRe: DLL reference fails after first build Pin
JacquesDP3-Jan-11 19:35
JacquesDP3-Jan-11 19:35 
AnswerRe: DLL reference fails after first build Pin
jschell3-Jan-11 10:02
jschell3-Jan-11 10:02 
GeneralRe: DLL reference fails after first build Pin
JacquesDP3-Jan-11 19:31
JacquesDP3-Jan-11 19:31 

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.