I am also pretty new to all this web service stuff, and also new to the remoting world, at least in C# and .NET. However I think I managed to serialize a Hashtable the other day... Here is the code
Code:
[Serializable]
public class Hasher : Hashtable, ISerializable
{
public Hasher()
{
}
public Hasher(SerializationInfo info, StreamingContext context)
{
SerializationInfoEnumerator i = info.GetEnumerator();
while(i.MoveNext())
this.Add(i.Name, i.Value);
}
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
IDictionaryEnumerator i = this.GetEnumerator();
while(i.MoveNext())
info.AddValue((string)i.Key, i.Value);
}
}
I may be worng, so please correct me if this is not the right way to do it.
Hope it helps, Jacob.