I have a complex type in my program, which leads to very long lines. Here he is:
List<FruitCallback<Fruit>>
Here's an example of where the line of code is too long and confusing:
private static Dictionary<Type, List<FruitCallback<Fruit>>> callbacks = new Dictionary<Type, List<FruitCallback<Fruit>>>();
I can create an alias for it by subclassing it like this:
class FruitCallbacks : List<SomeClass.FruitCallback<Fruit>> { }
But I could swear that I remember reading somewhere about how to pseudo-something something like this so that an empty class is not required.
source share