473,398 Members | 2,335 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,398 software developers and data experts.

C#: how to get a custom hashtable so that it can be xml serialized

750 Expert 512MB
how and why isnt it already provided??lol.... i wanted to inherit class hashtable and add a new field so that i can associate value and my new field to the KEY... i can inherit hashtable ..override ADD.. but how do i associate the key with my own field... Dont tell to have 2 hashtables.... i already tried that... but i guess it may be possible to do iwth 1... one more very impt thing... how do i get custom hashtable to be xml serialized?

public class my: hashtable
{
public list<int> myfield;
public override add(three objects)
base.add(2 object passed here)

/// now here how do i get myfield to get associated with KEY?
}
Dec 28 '07 #1
2 1761
Plater
7,872 Expert 4TB
A DataTable would hold any number of objects with any number of relations? It also comes with XML stuff. Would that work?

System.Collection.Specialized contains Dictionary/HashTable stuff too.
Dec 28 '07 #2
PRR
750 Expert 512MB
A DataTable would hold any number of objects with any number of relations? It also comes with XML stuff. Would that work?

System.Collection.Specialized contains Dictionary/HashTable stuff too.

wow.. u r right.... i guess it will.. i read somewhere that .... thx a lot... any ideas on custom hashtable?
Dec 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Brij | last post by:
Hi Guys, kinda hopin someone has an answer to this. I have some user information that i need to dump into a cookie, but its not a straightforward dump. I have a collection of data in a...
3
by: Cederstrom | last post by:
Hello group! :) I want to create a config/status object, that will contain a Hashtable. This object I would like to save through Serialization, but im having some trouble. My hashtable contain...
1
by: francois | last post by:
Hi, I have a webservice that I am using and I would like it to return an XML serialized version of an object. the class of the object is defined serializable as the following: public...
5
by: francois | last post by:
First of all I would to to apologize for resending this post again but I feel like my last post as been spoiled Here I go for my problem: Hi, I have a webservice that I am using and I would...
3
by: MioTheGreat | last post by:
I know how to take a single hashtable, and then use a binaryformatter and a filestream to dump it to a file, but I need to serialize and deserialize a hashtable inside a class. I've been trying...
0
by: Brett | last post by:
I am working with vb.net in a asp.net application. I have created a config file in xml format. The goal is to be able to change the config file without having to recompile the entire...
7
by: Peter Kirk | last post by:
Hi I am trying to write a web service. This web service is a "generic webservice" for our solution - that is, it should be able to return different data depending on who calls it. For...
1
by: Mike Barakat | last post by:
Hello, I'm using hashtables in c# as my primary application database, when the application loads its deserialize the contents of a file (that has been serialized) into the computer memory. ...
0
by: Rajesh | last post by:
I am trying to use a simple custom type for saving the profile information of a user. The custom class inherits from the Hashtable. I am serializing the type as "Binary" in the provider sections of...
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: 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:
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
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
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
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...

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.