473,409 Members | 1,954 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,409 software developers and data experts.

Custom formatter creation

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 the association?
I couldn't find any sample explaining how to create custom formatters...
Any pointer or sample would be appreciated...
--
Nadav
http://www.ddevel.com
Nov 16 '05 #1
2 2155
You might want to investigate Angelo Scotto's "CompactFormatter". This is a
highly customized alternative to the BinaryFormatter classes. Full source
code is available.

See here:

http://www.freewebs.com/compactFormatter/

Peter

"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
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 the association?
I couldn't find any sample explaining how to create custom formatters...
Any pointer or sample would be appreciated...
--
Nadav
http://www.ddevel.com

Nov 16 '05 #2
Thanks for the link but apparently the formatter implemented in this sample
doesn't implement the IFormatter interface, I would rather implement a
formatter that support standart interfaces...

"Peter Bromberg [MVP]" wrote:
You might want to investigate Angelo Scotto's "CompactFormatter". This is a
highly customized alternative to the BinaryFormatter classes. Full source
code is available.

See here:

http://www.freewebs.com/compactFormatter/

Peter

"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
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 the association?
I couldn't find any sample explaining how to create custom formatters...
Any pointer or sample would be appreciated...
--
Nadav
http://www.ddevel.com


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andreas Jung | last post by:
I am trying to write a custom logger with a custom handler: class MyHandler(StreamHandler): pass class Logger: def __init__(self): self._l = logging.getLogger('someident')...
4
by: drewnoakes | last post by:
Hi, I'm developing an application server to which clients will connect over the network. This server has a variety of entry points, and remoting seems well suited for those clients written in...
1
by: Eric Workman | last post by:
Hi Everyone- I would like to implement the IFormatter class to create a custom formatter that essentially does exactly what the System.Xml.Serialization.XmlSerializer does, but also would allow...
2
by: Nadav | last post by:
Hi, Introduction: **************** I am trying to DeSerialize a file that was created by an unmanaged application by the binary formatter, to achieve that I am implementing the following...
1
by: David Herbst | last post by:
Enterprise Library Jan 2006 with Visual Studio 2005 on Windows 2000 Server sp4. My custom exception formatter fails with a "Unable to handle exception: 'LoggingExceptionHandler'." exception. ...
4
by: clintonG | last post by:
TimeSpan utcOffset = localZone.GetUtcOffset(DateTime.Now); MessageLabel.Text = utcOffset.ToString( ); // returns -06:00:00 Instead of -06:00:00 I want -06:00. Apparently the custom formatter...
0
by: kplkumar | last post by:
In Enterprise Library 2.0, I created a custom formatter as below, public class ERFormatter : LogFormatter { ...... // ________________________________________________________________ The...
0
by: Eniac | last post by:
Hello, I've started using Enterprise Library 2.0 recently and I've encountered a problem that seems to be ... well... undocumented :) Basically, when I set a Trace Listener (formatted event...
3
by: Lowell Alleman | last post by:
Here is the situation: I wrote my own log handler class (derived from logging.Handler) and I want to be able to use it from a logging config file, that is, a config file loaded with the...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...

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.