I looked through many C # generic code examples and did not forget to see the syntax trick of the declaration, which created an alternative abbreviated type for a long generic dictionary type. Mixing C # and C ++ was something like:
typedef MyIndex as Dictionary< MyKey, MyClass>;
This allowed the use of the following:
class Foo
{
MyIndex _classCache = new MyIndex();
}
Can someone remind me which C # lanaguage feature supports this?
source
share