Click here to Skip to main content
15,919,774 members
Home / Discussions / C#
   

C#

 
GeneralRe: api Pin
Carlos H. Perez15-Oct-03 15:14
Carlos H. Perez15-Oct-03 15:14 
GeneralRe: api Pin
Christian Graus16-Oct-03 10:07
protectorChristian Graus16-Oct-03 10:07 
Generallistview Pin
jphuphilly15-Oct-03 13:39
jphuphilly15-Oct-03 13:39 
GeneralRe: listview Pin
Heath Stewart16-Oct-03 9:23
protectorHeath Stewart16-Oct-03 9:23 
Generalc++ vs C# Pin
totig15-Oct-03 11:30
totig15-Oct-03 11:30 
GeneralRe: c++ vs C# Pin
Christian Graus15-Oct-03 13:48
protectorChristian Graus15-Oct-03 13:48 
GeneralRe: c++ vs C# Pin
leppie16-Oct-03 8:24
leppie16-Oct-03 8:24 
GeneralRe: c++ vs C# Pin
Christian Graus16-Oct-03 10:04
protectorChristian Graus16-Oct-03 10:04 
GeneralRe: c++ vs C# Pin
Eric Gunnerson (msft)16-Oct-03 10:33
Eric Gunnerson (msft)16-Oct-03 10:33 
Generalenums suck! Pin
Alvaro Mendez15-Oct-03 9:17
Alvaro Mendez15-Oct-03 9:17 
GeneralRe: enums suck! Pin
Richard Lowe15-Oct-03 10:36
Richard Lowe15-Oct-03 10:36 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 11:10
Alvaro Mendez15-Oct-03 11:10 
GeneralRe: enums suck! Pin
Heath Stewart15-Oct-03 11:52
protectorHeath Stewart15-Oct-03 11:52 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 13:04
Alvaro Mendez15-Oct-03 13:04 
GeneralRe: enums suck! Pin
bjoernen16-Oct-03 3:36
bjoernen16-Oct-03 3:36 
C# enums are not primarily used for giving integer constants names. For that purpose you use integer constants. Enums are a type of their own. Thats why they have to be casted if you want to use them as integers. That, together with not treating 0/1 as boolean values, are just ways to improve the language and enforce type safety, that makes us programmers write safer code.

Your examples of bitwise operations dont work because you try to implicitly convert to Int32.

GeneralRe: enums suck! Pin
Richard Lowe16-Oct-03 3:37
Richard Lowe16-Oct-03 3:37 
GeneralToolbar Pin
Gary Kirkham15-Oct-03 8:50
Gary Kirkham15-Oct-03 8:50 
GeneralRe: Toolbar Pin
Heath Stewart15-Oct-03 11:54
protectorHeath Stewart15-Oct-03 11:54 
GeneralCustom Controls and Enum value Types Pin
Douglas Troy15-Oct-03 5:45
Douglas Troy15-Oct-03 5:45 
GeneralPassing a Form reference to a new Form Pin
mikemilano15-Oct-03 4:50
mikemilano15-Oct-03 4:50 
GeneralRe: Passing a Form reference to a new Form Pin
Mike Dimmick15-Oct-03 4:59
Mike Dimmick15-Oct-03 4:59 
GeneralBindingContext Pin
Anonymous15-Oct-03 4:45
Anonymous15-Oct-03 4:45 
GeneralWindows Form TabPage Pin
Jubal15-Oct-03 4:19
Jubal15-Oct-03 4:19 
GeneralRe: Windows Form TabPage Pin
Wjousts15-Oct-03 5:49
Wjousts15-Oct-03 5:49 
GeneralUsing C# in MFC Project Pin
Anonymous14-Oct-03 23:53
Anonymous14-Oct-03 23:53 

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.