请问在建立IDictionary集合时,可以把key设置成TextBox类型的吗?也就是把集合定义成:
IDictionary<TextBox, string> tb = new Dictionary<TextBox, string> ();
这样会不会产生问题