我用明确的错误报告来结束我的 ajax 复制和粘贴。
最后Function Returns 三个Keys 与三个Lists 为Values。
伪
Return New Dictionary(Of String, List(Of Object)) From {
{"duplicatePoints", UniqueErrorsReport},
{"inexistentPoints", ExistenceErrorsReport},
{"insertedRows", InsertedRows}
}
两个是List(Of Object)s,一个是 a List(Of Array)。我讨厌做同样的事情两次,所以我不想使用Structure.
我通过声明 aList(Of Array)而不是 aList( Of Object())会让我从Array下降Object(如果我没看错的话)滑落,我表现得非常聪明和思考。不,至少不是我这样做的方式:
Unable to cast object of type 'System.Collections.Generic.List`1[System.Array]'
to type 'System.Collections.Generic.List`1[System.Object]'
是否可以避免在同一容器中使用 aStructure和简单Return的非多维和多维容器作为Values Key:Value容器?