473,498 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to serialize twodimensional arrays

Hello there,

I want to serialize a twodimensional array:

e.g.

public string[,] Table
{
get { return _table; }
set { _table = value; }
}

Is this possible by using the attribute
System.Xml.Serialization.XmlArray? How do I have to define the
attribute to serialize my twodimensional array?

Regards,
Norbert

Nov 8 '07 #1
1 4166
Norbert Pürringer wrote:
I want to serialize a twodimensional array:

e.g.

public string[,] Table
{
get { return _table; }
set { _table = value; }
}

Is this possible by using the attribute
System.Xml.Serialization.XmlArray? How do I have to define the
attribute to serialize my twodimensional array?
XML serialization for multi-dimensional arrays is not supported.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 8 '07 #2

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

Similar topics

0
1693
by: Jason Shohet | last post by:
There's a 3rd party object that I have, which has a multi-dimensional array on it. I'm getting an error about that multi-dimensional array -- that I can't serialize with it in there. Is there...
14
14260
by: vince | last post by:
Can I add (append) to an xml file that already contains a serialized object, and be able to deserialize to either or both objects from the same file...??? How is this done...?? thanks, vince
5
2116
by: Arjen | last post by:
Hello, I have an array "aPeople" with people objects which I serialize like this: XmlSerializer x = new XmlSerializer( typeof(People) ); TextWriter writer = new StreamWriter( "data.xml" );...
7
3519
by: Ben Amada | last post by:
I've created a class that I need to store in ViewState. However when I try to store it in ViewState, I get the following error: "The type 'solution.pe2' must be marked as Serializable or have a...
5
2576
by: Peter | last post by:
I have large arrays or Array type I am planning to Serialize and save the serialized data into Access database as memo field. My question is: Is it safe to save this data in that format, will I be...
18
2302
by: yusuf | last post by:
I basically want to be able to store and retrieve a tree structure in greasemonkey. Unfortunately the GM_setValue and GM_getValue functions only take string key value pairs. Is there a native...
2
35550
by: Joe | last post by:
Hi I have a Generics List in a PropertyGrid I am able to Serialize it to XML but when I try to deserialize back to the class of the PropertyGrid The Constructor doesn't seem to fire to reload...
2
1934
by: Leon_Amirreza | last post by:
How can I serialize a uint Type into a Byte?
3
1241
by: droomwever | last post by:
Hi, Let me first say that I'm new to C#. (Maybe that's my biggest problem). What I want is a twodimensional array of undefined length to store coordinates. At each coordinate I want to store...
0
7125
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
7004
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
7167
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
7379
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
5464
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,...
0
4593
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
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.