Why it is not possible to define generic indexers in .NET?

后端 未结 7 804
灰色年华
灰色年华 2020-12-05 12:31

Why can\'t you create a generic indexer in .NET?

the following code throws a compiler error:

   public T this[string key]
   {
      get { /         


        
7条回答
提交回复
热议问题