Hi Wolfgang,
The simplest approach, which also works in 3.5, is to create an IPersistor
interface that IPersistor inherits from. Then you can assign any
IPersistor to a variable of IPersistor.
In 4.0 though, you can now use co-variance or contravariance (not both) when
designing your interf
Hi James,
Thank you for your response, I am not fussed about what to use as long as I
can get it working. This is what I have got so far:
public interface IItemPersisor
{
void Save(object item);
}
public interface IItemPersisor : IItemPersisor
{
void Save(T item);
}
but now
he rest of
your object model is correct. Perhaps you could show me more of the calling
code?
Cheers.
James.
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Wolfgang Von Steinberg
Sent: Sunday, 7 November 2010 18:11
To: ozDotNet
Subject: Re: Ge