470,624 Members | 2,476 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

Formatter

Which library should I include for the formatter in

formatter.Serialize(output, record);

Many thanks.

--
Patrick De Ridder
ng****@freeler.nl
Nov 15 '05 #1
4 5798
using System.Runtime.Serialization;

using System.Runtime.Serialization.Formatters.Binary;

dont think you need to reference any .dll's other then the defaults.

but i could be wrong! :)

regards

Dave

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:ml********************************@4ax.com...
Which library should I include for the formatter in

formatter.Serialize(output, record);

Many thanks.

--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #2
using System.Runtime.Serialization;

using System.Runtime.Serialization.Formatters.Binary;

dont think you need to reference any .dll's other then the defaults.

but i could be wrong! :)

regards

Dave

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:ml********************************@4ax.com...
Which library should I include for the formatter in

formatter.Serialize(output, record);

Many thanks.

--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #3
Patrick,
What type of object is formatter defined to be? ;-)

For the Binary formatter look for the
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter

For the XML formatter look for the
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter

Both of which implement the
System.Runtime.Remoting.Messaging.IRemotingFormatt er &
System.Runtime.Serialization.IFormatter interfaces.

There is also System.Runtime.Serialization.Formatter base class, which I
believe is used by the BinaryFormatter & SoapFormatter, but I'm not sure
how. The help for Formatter says "Provides base functionality for the common
language runtime serialization formatters", But BinaryFormatter &
SoapFormatter do not appear to inherit from Formatter... But I digress...
;-)

Hope this helps
Jay

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:ml********************************@4ax.com...
Which library should I include for the formatter in

formatter.Serialize(output, record);

Many thanks.

--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #4
Patrick,
What type of object is formatter defined to be? ;-)

For the Binary formatter look for the
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter

For the XML formatter look for the
System.Runtime.Serialization.Formatters.Soap.SoapF ormatter

Both of which implement the
System.Runtime.Remoting.Messaging.IRemotingFormatt er &
System.Runtime.Serialization.IFormatter interfaces.

There is also System.Runtime.Serialization.Formatter base class, which I
believe is used by the BinaryFormatter & SoapFormatter, but I'm not sure
how. The help for Formatter says "Provides base functionality for the common
language runtime serialization formatters", But BinaryFormatter &
SoapFormatter do not appear to inherit from Formatter... But I digress...
;-)

Hope this helps
Jay

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:ml********************************@4ax.com...
Which library should I include for the formatter in

formatter.Serialize(output, record);

Many thanks.

--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Morten W. Petersen | last post: by
8 posts views Thread by John Dalberg | last post: by
2 posts views Thread by Nadav | last post: by
1 post views Thread by Edward Yang | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.