什么是VB.Net代码Equivelant的C#匿名类型的代码? [英] What is the VB.Net Code Equivelant for c# Anonymous Type code?

查看:349
本文介绍了什么是VB.Net代码Equivelant的C#匿名类型的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我在VB.Net代码equivelant这个C#代码是什么?



 新{名=值} 


解决方案

这就是所谓的匿名类型和VB相当于是:

 新增功能{.Name点=值} 


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

new {name="value"}

解决方案

This is called Anonymous Types and the VB equivalent is :

 New With {.Name = "value"}

这篇关于什么是VB.Net代码Equivelant的C#匿名类型的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆