Click here to Skip to main content
15,888,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Beginner's C# Book Pin
carbon_golem13-May-08 7:27
carbon_golem13-May-08 7:27 
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 
Hello everyone,


I have 3 basic questions about Enum, from MSDN,

http://msdn.microsoft.com/en-us/library/sbbt4032(VS.80).aspx

1.

It is mentioned "A variable of type Days can be assigned any value in the range of the underlying type;" -- I think it is not correct to say any value in the range of the underlying type, like integer, but in the range from Sat to Fri.

For example, you can not write Days d = 65535;

2.

"and if additional elements have been added to the enum type, the test for default values can return true unexpectedly." I do not quite understand this scenario, could anyone show me some code please?

3.

"You can notice these changes when using tools such as the Console class methods, the Expression Evaluator, and so forth. (See example 3).", I have tried example 3. But what are the rules for the changes when we add System.FlagsAttribute? The document only says there will be some changes, but not clearly states what will be the changes. Any ideas?


thanks in advance,
George
AnswerRe: basic questions about enum Pin
Nissim Salomon13-May-08 4:29
Nissim Salomon13-May-08 4:29 
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 

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.