I have this piece of code:
public class Leg : ProxiestChild
{
public virtual Name { get; set; }
}
the problem is:
var leg = new Leg(); // leg is not Leg, instead ProxiedLeg
var trueleg = (Leg)leg; // exception leg is a ProxiedLeg
i need something like this
public class ProxiestChild
{
// some method that overloads explicit CAST
// where receiving the proxied object i returns the unproxied object
// to be casted
}