Using List in C# (Generics)

前端 未结 4 499
灰色年华
灰色年华 2021-02-03 22:25

That\'s a pretty elementary question, but I have never delved into generics before and I found myself in the need to use it. Unfortunately I don\'t have the time right now to go

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-03 22:47

    Basically, In C#, List < T > class represents a strongly typed list of objects that can be accessed by index.

    And it also supports storing values of a specific type without casting to or from object.

    we can use in Interger value & String Value in the List.

提交回复
热议问题