I'm putting several legacy web services and the current web service into the same back end.
But I have to keep the old web services compatible with there old interface.
So my question:
Is there a way I can set several attributes on, for example, a property?
Like this:
[XmlElement("AvailableFrom",... what I need...)]
[XmlElement("Available",... what I need...)]
public DateTime AvailableFrom{get; set;}
One solution would be creating extra properties, but I really don't like the code bloat.
private DateTime _availableFrom;
[XmlElement("AvailableFrom")]
public DateTime AvailableFrom
{
get
{
return _availableFrom;
}
set
{
_availableFrom = value;
}
}
[XmlElement("Available")]
public DateTime Available
{
get
{
return _availableFrom;
}
set
{
_availableFrom = value;
}
}