C# return Dictionary in generic method -


public abstract baseclass  {     public abstract dictionary<t, v> extractsummaryinfo<t, v>()         v : product;      }  public myclass : baseclass  {    public override dictionary<t, v> extractsummaryinfo<t, v>()       {         dictionary<t, v> products = new dictionary<t, v>();          string id = "hrm";         product product = new product("product 1");          products[id t] = product v;          return products;        }   } 

it seems me line of code (products[id t] = product v;) wrong, tell me please how implement method?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -