pgenfer / mixinSharp

extension for VS2015 that adds mixins to C#
MIT License
11 stars 1 forks source link

Add indexer support for mixins #1

Closed pgenfer closed 8 years ago

pgenfer commented 8 years ago

Indexers in mixins should also be included in the child class and forwarded to the mixin instance.

public class Mixin
{
       public int this[int index]{/* indexer logic */}
}

should be forwarded to

public class Child
{
       private Mixin _mixin;
       public int this[int index] => _mixin[index];
}