Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
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 
First, you *can* do bitwise ops on Enum values without casting, but you might want to mark the enum with the FlagsAttribute if you do so (which VS.NET, at least, uses in some cases).

Since enums can be defined as various at various int sizes and signed or unsigned, that implicit cast would have to follow the enum's int type or risk a lossy cast (can't cast to Int32 from Int64 without a loss of data similar with unit to int). I prefer the type safety and un-ambiguity, and if you need it, the int value is there.

R.
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 
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 
GeneralVersioning Solution Pin
Member 37818914-Oct-03 20:55
Member 37818914-Oct-03 20:55 
GeneralRe: Versioning Solution Pin
Douglas Troy15-Oct-03 6:26
Douglas Troy15-Oct-03 6:26 
GeneralRe: Versioning Solution Pin
Heath Stewart15-Oct-03 11:59
protectorHeath Stewart15-Oct-03 11:59 

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.