473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5951
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Morten W. Petersen | last post by:
Hi, I have an HTML page that displays some content, and a part of that content is HTML changed into regular text. The encoding of the page is UTF-8. Here's the code that makes the change...
0
by: Christopher Pragash | last post by:
Hello All, Recently I had posted a message to forum requesting assistance to resolve a security issueI was facing in .NET Framework 1.1, the error being "Because of Security Restrictions, the...
8
by: John Dalberg | last post by:
I have spent 1/2 hour looking for a Javascript formatter with no luck. I am using a tool that produces Javascript statements in one long string and it's hard to read. Any recommendations? I see...
1
by: CLEAR-RCIC | last post by:
I have a piece of code that works in C# but when I convert it to VB.Net I get the following error: "Cannot deserialize the message passed as an argument. Cannot recognize the serialization format."...
0
by: Jon | last post by:
From: Michael Day <mikeday@yeslogic.com> Subject: Prince 5.0: XML + CSS to PDF formatter We are very happy to announce the release of Prince 5.0, a new version of our batch formatter for...
4
by: Andreas Huber | last post by:
Hello there I need to serialize/deserialize some pretty simple data structures (no inheritance, few has relationships, ~20 classes) in three formats. One is XML (structure is not important as...
2
by: Nadav | last post by:
Hi, I am trying to create a custom formatter ( such as the binary formatter ), I can't figure out where do I bind the input Data Stream with the SerializationInfo object info how should i create...
1
by: Edward Yang | last post by:
When it comes to ViewState in ASP.NET, I have a mixed feeling of both love and hate. For love, it simplifies many aspects of common tasks; for hate, it bloats web pages with large amount of cryptic...
1
by: andrew | last post by:
I was earlier trying to persist a windows forms control to disk using the binary formatter class. I have devised a workaround, however I have Classes added in as references to my project which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.