On Wed, Aug 10, 2016 at 11:55 AM, Michael Powell wrote:
> Hello,
>
> I have a use case where I'd like to cast an abstract base class to a
> child class in order to verify one of the child class properties.
In my joining table mapping, in this case the reference from Cup to
You can put something like this in relevant base class:
public TCastTarget As()
{
return (TCastTarget)this;
}
Then you don't have to turn off proxying.
/Oskar
2016-08-10 18:02 GMT+01:00 Michael Powell :
> On Wed, Aug 10, 2016 at 11:55 AM, Michael Powell
Hello,
I have a use case where I'd like to cast an abstract base class to a
child class in order to verify one of the child class properties.
Consider, an albeit somewhat contrived example:
abstract class Juice { }
class AppleJuice : Juice { public virtual double Acidity { get; set; } }
class