View Single Post
  #1 (permalink)  
Old 07-18-2005
DeepDiver's Avatar
DeepDiver DeepDiver is offline
Registered User
 
Name: Thomas Müller
Organization: Freelance Software Developer
Project: Project depend on Customers
 
Join Date: Nov 2004
Location: Munich, Bavaria, Germany
Posts: 100
C#: Attributes with Ice generated classes and structs

hi,

i'd like to use .net serialization on ice generated classes/structs.
therefore i need set the attribute [Serializable] in the beginning of the
call definition.

is there a way to do this?
maybe the compiler could support a metadata directive for this.

thx tom

PS: another solution would be to work with ice classes and registed and
object factory which generates an object base on a class with the attribute.
but thats a bit of an overkill fo just have one attribues set.

PPS: such a metadata directive is also needed for sequences and
dictionaries - in case ZeroC is planning to add this feature ;-)

Last edited by DeepDiver : 07-18-2005 at 04:14 PM. Reason: added comment on sequences and dictionaries
Reply With Quote