473,461 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to XMLSerialze an object which has an object array as filed?

Hi, Could anyone give me some help about the following problem?
I need to XMLSerialize an object of the following class:

[Serializable]
public class FunctionCallingList
{
public string typeName;
public string methodName;
public DateTime time;
public object[] args;
}
And the element of args here could be different(maybe 1 int, 1 doulbe,
1 array and 1 user define type object, which may has another object
arrray inside).

But when I use the following code:
FunctionCallingList = new FunctionCallingList(...);
xmlSerializer = myGetXmlSerializer(typeof(fcl));
xmlSerializer.Serialize(myFuncListWriter, fcl);
it turns out that XMLSerialzer failed because of this object[] args;.
And the element of args here could be different(maybe 1 int, 1 doulbe,
1 array and 1 user define type object).

Could anyone tell me how to handle this issue? Thank you very much.

Feb 9 '06 #1
0 914

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

Similar topics

1
by: BO | last post by:
Hello, How we can change our cursor position for this issue: we are in Edit1 filed, when we click Enter (in Edit1 field) I want to be in Edit2 filed. How we can do it? Chris
4
by: F Da Costa | last post by:
Hi, Small question re the use of an Array. I'v got an array with x rowObjects in it. When i get it the type of the container is Array and i can get a hold of the objects just fine. owever,...
35
by: VK | last post by:
Whatever you wanted to know about it but always were affraid to ask. <http://www.geocities.com/schools_ring/ArrayAndHash.html>
6
by: ebc | last post by:
Hi, I have written a function that removes double entries from a sorted array. See the structures typedef struct tagRECR { char name;
1
by: Jack | last post by:
Hi, Could anyone give me some help about the following problem? I need to XMLSerialize an object of the following class: public class FunctionCallingList { public string typeName; public...
2
by: pawanez4u | last post by:
Hi All, This is Pavankumar, I am doing Attendance Management project in PHP. What i want is as a day increases i want to alter the table with new filed with name current date(i,e) 01 Nov 07 for...
3
by: Yas | last post by:
Hi everyone I am trying to create a DELETE Trigger. I have 2 tables. Table1 and Table2. Table 2 has all the same fields and records as Table1 + 1 extra column "date_removed" I would like that...
3
by: Jackiegall | last post by:
Hi. I have only limited knowledge of Access 2007, as the database I use was created by a former employee - I just use it & have no idea how it works! There are approx 600 customer records in the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.