Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:01
rowdy_vc++24-Feb-08 21:01 
GeneralRe: windows TO vista!! Pin
Christian Graus24-Feb-08 21:24
protectorChristian Graus24-Feb-08 21:24 
GeneralRe: windows TO vista!! Pin
rowdy_vc++24-Feb-08 21:56
rowdy_vc++24-Feb-08 21:56 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:53
Colin Angus Mackay24-Feb-08 22:53 
GeneralRe: windows TO vista!! Pin
Colin Angus Mackay24-Feb-08 22:50
Colin Angus Mackay24-Feb-08 22:50 
QuestionHi friends.. please help me waiting or loading pages problem Pin
G Nathan24-Feb-08 17:50
G Nathan24-Feb-08 17:50 
GeneralRe: Hi friends.. please help me waiting or loading pages problem Pin
Christian Graus24-Feb-08 18:13
protectorChristian Graus24-Feb-08 18:13 
GeneralXmlSerialize and nullable types Pin
QzRz24-Feb-08 9:54
QzRz24-Feb-08 9:54 
Hello

I am new to XmlSerializing and I got a problem when trying to serialize a nullable int.

The thing I serialize look like this
private int? length;<br />
public int? Length {<br />
get { return this.length; }<br />
set { this.length = value; } }


But when I serialize this, and it is null, the output looks like this:
<Length d3p1:nil="true" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" />

What I want it to do is, when the int is null, I want it to be ignored and thereby not having any output to my xml-file.

I could make my int to a string and then convert the string to an int whenever I need, but that doesnt seem to be a good solution to me.

So, does any of you know a way to XmlSerialize an int and then if it is null, it shouldt be showed in the xml-file, or a good article/something?

//QzRz
QuestionPlay AVI streams in Vista/Longhorn Pin
quiensabe24-Feb-08 9:12
quiensabe24-Feb-08 9:12 
GeneralRe: Play AVI streams in Vista/Longhorn Pin
Christoph Menge24-Feb-08 9:44
Christoph Menge24-Feb-08 9:44 
GeneralRe: Play AVI streams in Vista/Longhorn Pin
quiensabe24-Feb-08 10:22
quiensabe24-Feb-08 10:22 
GeneralBeginRecive() - Showing a Window in data recieved event handler Pin
gunner_uk200024-Feb-08 8:41
gunner_uk200024-Feb-08 8:41 
GeneralUsing two graphics and GraphicsState Pin
baranils24-Feb-08 8:40
baranils24-Feb-08 8:40 
Generalenumeration linking to objects Pin
Eli Nurman24-Feb-08 5:08
Eli Nurman24-Feb-08 5:08 
GeneralHelp using listbox with access database... Pin
Jacob Dixon24-Feb-08 4:58
Jacob Dixon24-Feb-08 4:58 
QuestionHow to set a files date modified property? Pin
gunner_uk200024-Feb-08 4:09
gunner_uk200024-Feb-08 4:09 
AnswerRe: How to set a files date modified property? Pin
Luc Pattyn24-Feb-08 4:47
sitebuilderLuc Pattyn24-Feb-08 4:47 
GeneralGDI+ Problem GUI Graphics Pin
aa1124-Feb-08 3:50
aa1124-Feb-08 3:50 
GeneralRe: GDI+ Problem GUI Graphics Pin
Ed.Poore24-Feb-08 7:14
Ed.Poore24-Feb-08 7:14 
GeneralRe: GDI+ Problem GUI Graphics Pin
Roger Alsing24-Feb-08 10:05
Roger Alsing24-Feb-08 10:05 
GeneralRe: GDI+ Problem GUI Graphics Pin
Ed.Poore24-Feb-08 15:22
Ed.Poore24-Feb-08 15:22 
GeneralRe: GDI+ Problem GUI Graphics Pin
aa2224-Feb-08 22:51
aa2224-Feb-08 22:51 
General"There is no such object on the server" Error after Active Directory SetPasword call Pin
Hesham Amin24-Feb-08 2:53
Hesham Amin24-Feb-08 2:53 
GeneralRe: "There is no such object on the server" Error after Active Directory SetPasword call Pin
foluis29-Mar-10 6:52
foluis29-Mar-10 6:52 
GeneralRe: "There is no such object on the server" Error after Active Directory SetPasword call Pin
Hesham Amin3-Apr-10 23:55
Hesham Amin3-Apr-10 23:55 

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.