473,473 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SerializationInfo problem

Bob
I'm creating my own Formatter, and I have this in the Serialize method to
get ready to collect all the information I need:

Dim c As New TestFormatterConverter
Dim info As New SerializationInfo(graph.GetType, c)

TestFormatterConverter is my own class that implements IFormatterConverter.

Well... I'm a bit confused here, because assumably the new SerializationInfo
object is going to use my TestFormatterConverter. But it doesn't. I put
breakpoints on all its methods, and when I call AddValue and GetValue in
TestFormatterConverter, none of them are called. SerializationInfo is not
inheritable, and it specifically asks you to specify a FormatterConverter in
its constructer, so why the heck doesn't it use it??

Please, someone give me a clue on this one.

Thanks,
Bob
Nov 20 '05 #1
1 1588
Bob
Correction:

"when I call AddValue and GetValue in TestFormatterConverter"

should read

"when I call AddValue and GetValue in the new SerializationInfo object"
"Bob" <no****@nowhere.com> wrote in message
news:O7*************@TK2MSFTNGP10.phx.gbl...
I'm creating my own Formatter, and I have this in the Serialize method to
get ready to collect all the information I need:

Dim c As New TestFormatterConverter
Dim info As New SerializationInfo(graph.GetType, c)

TestFormatterConverter is my own class that implements IFormatterConverter.
Well... I'm a bit confused here, because assumably the new SerializationInfo object is going to use my TestFormatterConverter. But it doesn't. I put
breakpoints on all its methods, and when I call AddValue and GetValue in
TestFormatterConverter, none of them are called. SerializationInfo is not
inheritable, and it specifically asks you to specify a FormatterConverter in its constructer, so why the heck doesn't it use it??

Please, someone give me a clue on this one.

Thanks,
Bob


Nov 20 '05 #2

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
3
by: KWienhold | last post by:
I have been working with serialization in some places for a while and have now begun to run into version issues. Unfortunately my company is still working with .Net 1.1, so using the VTS of 2.0...
2
by: Adam Benson | last post by:
Hi, A SerializationInfo gets passed to your constructor for manual deserialization. If your deserialization constructor did this :
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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: 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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.