Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I have some troubles with my remote objects.

 

My "middleman" looks like this

Public Interface iMyProperties
   Inherits IDictionary(Of String, IProperty)

End Interface
Public Interface IProperty

   ReadOnly Property Properties() As Specialized.ListDictionary
   WriteOnly Property [Property]() As DictionaryEntry
End Interface

 

In the server I have a class marshaled that implements iMyProperties, one of my classes contains numeric only ListDictionary that implements IProperty.Properties and receiving it in the client as a ListDictionary is no problem. Another class has Strings in the ListDictionary and if I have more than one item there I get a SerializationException, one item is no problem :confused:

 

Can anyone please help me?

/Kejpa

Posted

Hi all,

problem solved.

It's using properties that caused the problem, changing it to a function and a sub solved it halfways, returning only strings and numbers made the rest work.

 

My "middleman" now looks like this

Public Interface iMyProperties
   Inherits IDictionary(Of String, IProperty)

End Interface
Public Interface IProperty

   Function Properties() As Specialized.ListDictionary
   Sub [Property](value As DictionaryEntry)
End Interface

 

/Kejpa

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...