Tech Off Post

Single Post Permalink

View Thread: What's the name of this (lacking?) C# language feature and why isn't it possible or is it?
  • User profile image
    cheong

    How about adding this to the top of file:

    using listType = System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<string, decimal>>; 

    And then change to the following?

    listType list = new listType();
    myClass.GenericMethod<listType>(list);