Click here to Skip to main content
15,887,895 members
Home / Discussions / C#
   

C#

 
AnswerRe: Beginner's C# Book Pin
Hamid_RT13-May-08 5:25
Hamid_RT13-May-08 5:25 
QuestionGlobalization and Measurement Units Pin
carbon_golem13-May-08 3:57
carbon_golem13-May-08 3:57 
AnswerRe: Globalization and Measurement Units Pin
User 137680013-May-08 4:51
User 137680013-May-08 4:51 
GeneralRe: Globalization and Measurement Units Pin
carbon_golem13-May-08 5:04
carbon_golem13-May-08 5:04 
GeneralRe: Globalization and Measurement Units Pin
carbon_golem13-May-08 5:10
carbon_golem13-May-08 5:10 
GeneralRe: Globalization and Measurement Units Pin
User 137680013-May-08 5:32
User 137680013-May-08 5:32 
Questionbasic questions about enum Pin
George_George13-May-08 3:29
George_George13-May-08 3:29 
AnswerRe: basic questions about enum Pin
Nissim Salomon13-May-08 4:29
Nissim Salomon13-May-08 4:29 
Hi
In the MSDN enum was declare as follow "The enum keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list"
1.
you need to understand that at the bottem line there is a native variable like int or short that can hold other values.
for example:
Days d = (Days)int.MaxValue;
2.
"Assigning additional values new versions of enums, or changing the values of the enum members in a new version, can cause problems for dependant source code. It is often the case that enum values are used in switch statements, and if additional elements have been added to the enum type, the test for default values can return true unexpectedly."
in case that you are using flags for bitwaise operation,
if one or more enum value was changed you need to update your program
to prevent unwanted if results
GeneralRe: basic questions about enum Pin
George_George13-May-08 4:42
George_George13-May-08 4:42 
GeneralRe: basic questions about enum Pin
Nissim Salomon13-May-08 4:56
Nissim Salomon13-May-08 4:56 
GeneralRe: basic questions about enum Pin
George_George14-May-08 1:39
George_George14-May-08 1:39 
GeneralRe: basic questions about enum Pin
Anthony Mushrow13-May-08 5:00
professionalAnthony Mushrow13-May-08 5:00 
GeneralRe: basic questions about enum Pin
George_George14-May-08 1:34
George_George14-May-08 1:34 
QuestionHow can I add two byte[1] + byte[2]? Pin
merh13-May-08 3:26
merh13-May-08 3:26 
QuestionRe: How can I add two byte[1] + byte[2]? Pin
CPallini13-May-08 3:48
mveCPallini13-May-08 3:48 
AnswerRe: How can I add two byte[1] + byte[2]? Pin
merh13-May-08 3:56
merh13-May-08 3:56 
GeneralRe: How can I add two byte[1] + byte[2]? Pin
Dan Neely13-May-08 4:13
Dan Neely13-May-08 4:13 
GeneralRe: How can I add two byte[1] + byte[2]? Pin
CPallini13-May-08 4:16
mveCPallini13-May-08 4:16 
AnswerRe: How can I add two byte[1] + byte[2]? Pin
merh13-May-08 4:27
merh13-May-08 4:27 
GeneralRe: How can I add two byte[1] + byte[2]? Pin
CPallini13-May-08 4:32
mveCPallini13-May-08 4:32 
AnswerRe: How can I add two byte[1] + byte[2]? Pin
merh13-May-08 5:53
merh13-May-08 5:53 
Questionhow to make a service automatic Pin
prasadbuddhika13-May-08 2:59
prasadbuddhika13-May-08 2:59 
AnswerRe: how to make a service automatic Pin
dan!sh 13-May-08 3:02
professional dan!sh 13-May-08 3:02 
QuestionDisassmble GAC-installed assembly Pin
ctoma200513-May-08 2:45
ctoma200513-May-08 2:45 
QuestionFlicker Problem in GDI+ Pin
hdv21213-May-08 2:12
hdv21213-May-08 2:12 

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.