如何返回一个只读泛型集合

  Private md_states As New List(Of String)

  Private md_states As New List(Of String)

    ReadOnly Property States() As System.Collections.ObjectModel.ReadOnlyCollection(Of String)

        Get

            Return Me.md_states.AsReadOnly

        End Get

    End Property

原文地址:https://www.cnblogs.com/zqonline/p/1682711.html