类似于数据表的rows属性的属性 [英] A property like the rows property of a datatable

查看:83
本文介绍了类似于数据表的rows属性的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在寻找一种实现诸如rows类之类的属性的方法:
像Datatable.rows(3)("Name")或Datatable.rows(3)(1)一样,但是当然有我自己的类.

Hello,

I am looking for a way to implement a property like the rows class has:
Like Datatable.rows(3)("Name") or Datatable.rows(3)(1) but ofcourse with my own classes.

Anyone got an example how to do this?

推荐答案

当然,第二个参数(如"name")是Row的属性.因为它是默认属性,所以可以省略名称.

有关更多信息:
http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultpropertyattribute%28VS.71%29.aspx [
Of course, the second parameter (like "name") is a property of Row. Because it is a default property the name can be omitted.

For more info:
http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultpropertyattribute%28VS.71%29.aspx[^]

Good luck!


这篇关于类似于数据表的rows属性的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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