I'm using the library to proxy an object as an interface, e.g.
[Serializable]
public class MyDTO
{
Guid Id { get; set; }
}
public interface MyInterface
{
Guid Id { get; }
}
var obj = new MyDTO(...);
var interf = obj.ActLike<MyInterface>();
It works fine and proxy is generated as expected but the problem is that my DTO is serializable as I need to pass it around AppDomain boundaries but the generated proxy is non-serializable.
Is this supported or is it a bug? Any way I can work around it?
I'm using the library to proxy an object as an interface, e.g.
It works fine and proxy is generated as expected but the problem is that my DTO is serializable as I need to pass it around AppDomain boundaries but the generated proxy is non-serializable.
Is this supported or is it a bug? Any way I can work around it?