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?