Vb.net 初始化、设置和返回内联结构?
在vb.net中,是否可以初始化、设置和Vb.net 初始化、设置和返回内联结构?,vb.net,initialization,return,structure,setvalue,Vb.net,Initialization,Return,Structure,Setvalue,在vb.net中,是否可以初始化、设置和返回结构内联 如果我有这个结构 Structure CopyAndPasteUniquesAndExistenceStructure Dim duplicatePoints As List(Of Array) Dim inexistentPoints As List(Of Array) Dim insertedRows As List(Of Object) End Structure 我怎样才能做到这一点 Return New C
返回结构内联
如果我有这个结构
Structure CopyAndPasteUniquesAndExistenceStructure
Dim duplicatePoints As List(Of Array)
Dim inexistentPoints As List(Of Array)
Dim insertedRows As List(Of Object)
End Structure
我怎样才能做到这一点
Return New CopyAndPasteUniquesAndExistenceStructure...
也可以添加专门的构造函数。如果您想要验证输入,或者想要使列表为只读(这通常对列表很有意义),这非常有用
也可以添加专门的构造函数。如果您想要验证输入,或者想要使列表为只读(这通常对列表很有意义),这非常有用
Return New CopyAndPasteUniquesAndExistenceStructure With {.duplicatePoints = New List(Of Array), .inexistentPoints = New List(Of Array), .insertedRows = New List(Of Object)}