Proxy support to allow easy composition of types

Topics: C# Language Design
Dec 23, 2014 at 11:55 AM
Edited Dec 23, 2014 at 11:55 AM
It would be very helpful, and improve code maintenance, to have a way to automatically proxy functions. In particular to implement an interface via another internal object.

The basic syntax would be:
public class Composed : ISomething {
    SomethingImpl impl;

    proxy impl as ISomething;
Though individual method proxying would also be available.

I wrote a somewhat longer article on the idea here: