Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
QuestionRe: Hi to One & All Pin
beatles169231-Aug-06 2:32
beatles169231-Aug-06 2:32 
AnswerRe: Thanks for replying me Pin
narendrakumarp31-Aug-06 4:26
narendrakumarp31-Aug-06 4:26 
Questionhow to call telecommuniation services through pocket pc in c# [modified] Pin
mohdmeraj30-Aug-06 23:25
mohdmeraj30-Aug-06 23:25 
AnswerRe: how to call telecommuniation services through pocket pc in c# Pin
Divyang Mithaiwala31-Aug-06 0:25
Divyang Mithaiwala31-Aug-06 0:25 
QuestionEnum in C# Pin
peshawarcoder30-Aug-06 23:06
peshawarcoder30-Aug-06 23:06 
AnswerRe: Enum in C# Pin
John Petersen30-Aug-06 23:18
John Petersen30-Aug-06 23:18 
GeneralRe: Enum in C# Pin
peshawarcoder31-Aug-06 1:15
peshawarcoder31-Aug-06 1:15 
AnswerRe: Enum in C# Pin
Scott Dorman1-Sep-06 13:01
professionalScott Dorman1-Sep-06 13:01 
If you intend the enum to allow for OR'd combinations as you imply, you should decorate the enum with the Flags[^] attribute.

This attribute indicates that an enumeration can be treated as a bit field; that is, a set of flags. Bit fields can be combined using a bitwise OR operation, whereas enumerated constants cannot.

Bit fields are generally used for lists of elements that might occur in combination, whereas enumeration constants are generally used for lists of mutually exclusive elements. Therefore, bit fields are designed to be combined with a bitwise OR operation to generate unnamed values, whereas enumerated constants are not. Languages vary in their use of bit fields compared to enumeration constants.

Your code will compile without the Flags attribute, but it helps the compiler, the runtime and other developers understand how the enum is supposed to be used.
Questionstuck with web conrol properties Pin
Mukesh Kumar Gupta30-Aug-06 22:35
Mukesh Kumar Gupta30-Aug-06 22:35 
Questionmaking an event handler/callback function Pin
Yustme30-Aug-06 22:30
Yustme30-Aug-06 22:30 
AnswerRe: making an event handler/callback function Pin
Andrei Ungureanu31-Aug-06 2:28
Andrei Ungureanu31-Aug-06 2:28 
AnswerRe: making an event handler/callback function Pin
beatles169231-Aug-06 2:45
beatles169231-Aug-06 2:45 
QuestionMs Word Properties Pin
jrsreenivas30-Aug-06 21:47
jrsreenivas30-Aug-06 21:47 
AnswerRe: Ms Word Properties Pin
Coding C#30-Aug-06 23:24
Coding C#30-Aug-06 23:24 
QuestionMatlab to C# conversion Pin
signimage30-Aug-06 20:59
signimage30-Aug-06 20:59 
AnswerRe: Matlab to C# conversion Pin
Kim061830-Aug-06 22:28
Kim061830-Aug-06 22:28 
QuestionAnyone worked with j#? Pin
Vsree30-Aug-06 19:41
Vsree30-Aug-06 19:41 
AnswerRe: Anyone worked with j#? Pin
gus_br31-Aug-06 1:44
gus_br31-Aug-06 1:44 
AnswerRe: Anyone worked with j#? Pin
Dave Doknjas31-Aug-06 13:06
Dave Doknjas31-Aug-06 13:06 
GeneralRe: Anyone worked with j#? Pin
Vsree31-Aug-06 20:02
Vsree31-Aug-06 20:02 
QuestionHow to give keyboard shortcut to Command Button Pin
Aslam Bari30-Aug-06 19:31
Aslam Bari30-Aug-06 19:31 
AnswerRe: How to give keyboard shortcut to Command Button Pin
Coding C#30-Aug-06 23:32
Coding C#30-Aug-06 23:32 
AnswerRe: How to give keyboard shortcut to Command Button Pin
Nader Elshehabi31-Aug-06 1:52
Nader Elshehabi31-Aug-06 1:52 
QuestionMerging XML Schemas Pin
Richard Andrew x6430-Aug-06 19:11
professionalRichard Andrew x6430-Aug-06 19:11 
QuestionGetting info from another application's datagrid Pin
MrWhite34030-Aug-06 19:04
MrWhite34030-Aug-06 19:04 

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.