What is the VB.Net Code Equivelant for c# Anonymous Type code?

那年仲夏 提交于 2020-01-02 05:19:05

问题


Can someone tell me what the code equivelant in VB.Net to this C# code is?

new {name="value"}

回答1:


This is called Anonymous Types and the VB equivalent is :

 New With {.Name = "value"}



回答2:


That feature is called an anonymous type.



来源:https://stackoverflow.com/questions/407586/what-is-the-vb-net-code-equivelant-for-c-sharp-anonymous-type-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!