Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
AnswerRe: Parameterized constructor? Pin
Christian Graus18-Aug-04 17:48
protectorChristian Graus18-Aug-04 17:48 
GeneralRe: Parameterized constructor? Pin
sachinkalse18-Aug-04 18:16
sachinkalse18-Aug-04 18:16 
GeneralRe: Parameterized constructor? Pin
leppie18-Aug-04 19:18
leppie18-Aug-04 19:18 
GeneralRe: Parameterized constructor? Pin
Christian Graus19-Aug-04 11:42
protectorChristian Graus19-Aug-04 11:42 
GeneralRe: Parameterized constructor? Pin
leppie19-Aug-04 13:00
leppie19-Aug-04 13:00 
GeneralRe: Parameterized constructor? Pin
Christian Graus19-Aug-04 13:08
protectorChristian Graus19-Aug-04 13:08 
GeneralRe: Parameterized constructor? Pin
leppie19-Aug-04 13:17
leppie19-Aug-04 13:17 
GeneralInstanceDescriptor and Server Control Pin
ChrisAdams18-Aug-04 16:34
ChrisAdams18-Aug-04 16:34 
Hi Guys,

I'm trying to write a server control that exposes as one of it's properties an object.

I've created a TypeConvertor that converts from a string representation to an instance of my object, and have also implemented the converstion from the object to an InstanceDescriptor.

When I create the InstanceDescriptor, I am passing in the parameters for the default no argument constructor of my object, and the third parameter to specify that the object can not be fully created from the InstanceDescriptor - which should force the serializer to output code for the properties of my object as well....

return new InstanceDescriptor( XmlDocType.GetConstructor( System.Type.EmptyTypes ), null, false);

However the code that is generated for the asp.net does not have any code for setting the propertiess of my object.

I know I could just create a constructor that takes in the values, and return the relevant InstanceDescriptor, but I would like to get it working the other way first. Does anyone know if this is possible, and where I could be gonig wrong?

Also I've looked at implementing my own CodeDomSerializer for my object, but cannot get the asp.net to actually call my implementation - again if any knows where I am going wrong with this, would be helpful to hear from you.

Thanks.

Chris.
GeneralStringBuilder new lines Pin
eggie518-Aug-04 14:54
eggie518-Aug-04 14:54 
GeneralRe: StringBuilder new lines Pin
S Sansanwal18-Aug-04 15:53
S Sansanwal18-Aug-04 15:53 
GeneralRe: StringBuilder new lines Pin
eggie518-Aug-04 18:17
eggie518-Aug-04 18:17 
GeneralRe: StringBuilder new lines Pin
Christian Graus18-Aug-04 15:53
protectorChristian Graus18-Aug-04 15:53 
GeneralRe: StringBuilder new lines Pin
eggie518-Aug-04 18:18
eggie518-Aug-04 18:18 
GeneralRe: StringBuilder new lines Pin
leppie18-Aug-04 20:03
leppie18-Aug-04 20:03 
GeneralRe: StringBuilder new lines Pin
eggie518-Aug-04 20:25
eggie518-Aug-04 20:25 
GeneralSNMP Get Pin
budha_man_9918-Aug-04 14:28
budha_man_9918-Aug-04 14:28 
GeneralRe: SNMP Get Pin
progload18-Aug-04 14:38
progload18-Aug-04 14:38 
GeneralHTTP URL question Pin
eggie518-Aug-04 14:03
eggie518-Aug-04 14:03 
GeneralRe: HTTP URL question Pin
Angel Reyes18-Aug-04 14:13
Angel Reyes18-Aug-04 14:13 
GeneralRe: HTTP URL question Pin
eggie518-Aug-04 14:26
eggie518-Aug-04 14:26 
GeneralRe: HTTP URL question Pin
Dave Kreskowiak19-Aug-04 5:46
mveDave Kreskowiak19-Aug-04 5:46 
GeneralRe: HTTP URL question Pin
Angel Reyes19-Aug-04 19:03
Angel Reyes19-Aug-04 19:03 
GeneralRe: HTTP URL question Pin
eggie519-Aug-04 11:36
eggie519-Aug-04 11:36 
GeneralRe: HTTP URL question Pin
Angel Reyes19-Aug-04 18:56
Angel Reyes19-Aug-04 18:56 
GeneralDROP a database with users connected Pin
Christian Graus18-Aug-04 13:55
protectorChristian Graus18-Aug-04 13:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.