By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,569 Members | 1,394 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,569 IT Pros & Developers. It's quick & easy.

Formatter

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.