This project is read-only.

Proxy support to allow easy composition of types

Topics: C# Language Design
Dec 23, 2014 at 12:55 PM
Edited Dec 23, 2014 at 12:55 PM
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: