XmlIgnore an inherited attribute

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have a number of classes that inherit from another class which
contains an attribure called "Url". I serialise my objects to an xml
file, but I would like to hide the "url" attribute for one of my
inherited classes. I can place the XmlIgnore in the base class, but
this will hide the attribute for all derived class. What should I do?

Thanks,

Barry.

.



Relevant Pages

  • Passing XMLNodes from ServicedComponent to Client
    ... All classes inherit from XMLNode class which inherits from Object class. ... I use ServicedComponent to read the XML and construct the object tree so the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Trace.axd
    ... xml and that there was a stylesheet that rendered this data and that I ... The output of the tracehandler is straight html and after using .net ... ShowRequests: Void ... I haven't made any attempt to inherit from this class yet but I would ...
    (microsoft.public.dotnet.framework.aspnet)