473,472 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 5953
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.