简体   繁体   中英

What is the difference between List<T> and List(Of T) in c#

我感到困惑,为什么Microsoft文档有时将List类称为List<T> ,有时将List(Of T)称为。

List(Of T)

is VB.NET syntax, and is the same as C#

List<T>

You will see it a lot in the MS documentation, because they will usually show sample code in both VB.NET and C#. You just need to pay attention to which one they are talking about.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM