摘要:
vb示例:Public Property Name() As String = "Bob" 等效于 Private _name As String = "Bob" Property Name As String Get Return _name End Get Set(value As String) ... 阅读全文
摘要:
背景:有一个泛型类,其中一个方法是泛型方法 Public Class GenericClass(Of T) 'This is not a generic method Public Sub Swap(ByRef item1 As T, ByRef item2 As T) Dim temp As T = item1 item2 = item1 i... 阅读全文