Click here to Skip to main content
15,885,767 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHi Frnds ,,Im a beginner in website designing Pin
jeswanth_073-Jun-09 21:16
jeswanth_073-Jun-09 21:16 
AnswerRe: Hi Frnds ,,Im a beginner in website designing Pin
Pete O'Hanlon3-Jun-09 21:39
mvePete O'Hanlon3-Jun-09 21:39 
Questionerror-data reader already open Pin
manjusha s3-Jun-09 2:35
manjusha s3-Jun-09 2:35 
AnswerRe: error-data reader already open Pin
Pete O'Hanlon3-Jun-09 3:02
mvePete O'Hanlon3-Jun-09 3:02 
QuestionRegistry Hive by name? Pin
lee232-Jun-09 22:27
lee232-Jun-09 22:27 
AnswerRe: Registry Hive by name? Pin
Simon P Stevens3-Jun-09 4:27
Simon P Stevens3-Jun-09 4:27 
GeneralRe: Registry Hive by name? Pin
Not Active3-Jun-09 10:14
mentorNot Active3-Jun-09 10:14 
GeneralRe: Registry Hive by name? Pin
Simon P Stevens3-Jun-09 11:11
Simon P Stevens3-Jun-09 11:11 
I see your point, and normally I would recommend using .isNullOrEmpty, but in this case the data retrived from the registry is an Object. The check for null is to find out if a non-null value was returned from the registry. If the object is non-null (including empty string) (and assuming that you created the key, so you know that the registry data type is a String type), then you can cast it to a String. Then, you can do String.IsNullOrEmpty to see if the registry value is an empty string if you want, but the point is that the registry key existed, and you have data, even if it's an empty string.

(I suppose, depending how critical the app is, you might want to do a non-failing cast instead just incase someone has changed the registry data type, but this is going a bit beyond the scope of the OP now)

Simon

GeneralRe: Registry Hive by name? Pin
lee233-Jun-09 13:27
lee233-Jun-09 13:27 
QuestionXML Serialization Problem with properties that when set change object status Pin
Sebastian Streiger2-Jun-09 2:32
Sebastian Streiger2-Jun-09 2:32 
AnswerRe: XML Serialization Problem with properties that when set change object status [modified] Pin
Moreno Airoldi3-Jun-09 1:35
Moreno Airoldi3-Jun-09 1:35 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Sebastian Streiger3-Jun-09 2:23
Sebastian Streiger3-Jun-09 2:23 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Moreno Airoldi3-Jun-09 3:03
Moreno Airoldi3-Jun-09 3:03 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Sebastian Streiger3-Jun-09 3:22
Sebastian Streiger3-Jun-09 3:22 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Moreno Airoldi3-Jun-09 22:36
Moreno Airoldi3-Jun-09 22:36 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Sebastian Streiger4-Jun-09 4:40
Sebastian Streiger4-Jun-09 4:40 
GeneralRe: XML Serialization Problem with properties that when set change object status Pin
Moreno Airoldi4-Jun-09 4:47
Moreno Airoldi4-Jun-09 4:47 
QuestionPlaying smoothly small pieces with DirectSound Pin
Andrey U2-Jun-09 0:09
Andrey U2-Jun-09 0:09 
AnswerRe: Playing smoothly small pieces with DirectSound Pin
molesworth2-Jun-09 3:31
molesworth2-Jun-09 3:31 
GeneralRe: Playing smoothly small pieces with DirectSound Pin
Andrey U2-Jun-09 4:18
Andrey U2-Jun-09 4:18 
GeneralRe: Playing smoothly small pieces with DirectSound Pin
molesworth2-Jun-09 6:58
molesworth2-Jun-09 6:58 
AnswerRe: Playing smoothly small pieces with DirectSound Pin
Mark Salsbery2-Jun-09 8:26
Mark Salsbery2-Jun-09 8:26 
GeneralRe: Playing smoothly small pieces with DirectSound Pin
Andrey U2-Jun-09 22:37
Andrey U2-Jun-09 22:37 
GeneralRe: Playing smoothly small pieces with DirectSound Pin
molesworth3-Jun-09 0:58
molesworth3-Jun-09 0:58 
GeneralRe: Playing smoothly small pieces with DirectSound Pin
supercat93-Jun-09 7:07
supercat93-Jun-09 7:07 

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.