问题描述
大家好,
对不起我没时间自己测试....
我可以添加相同的属性吗一场两次?
例如。
[MyAttr(),MyAttr(),MyAttr()]
公共字符串myField;
我问,因为我想将它用于
数据网格显示的可互换配置文件。
Eg 。
[DataGridCol(1," User Name"),DataGridCol(2," Login")]
公共字符串UserName;
任何帮助都会很棒,谢谢!
我需要快速回答,
干杯,
史蒂夫
Hi all,
Sorry I have no time to test this myself....
Can I add the same attribute to a field twice?
Eg.
[MyAttr(), MyAttr(), MyAttr()]
Public string myField;
I ask because I would like to use it for interchangable profiles for
datagrid display.
Eg.
[DataGridCol(1, "User Name"), DataGridCol(2, "Login")]
Public string UserName;
Any help would be great, thanks!
I need a quick answer,
Cheers,
Steve
推荐答案
当然自己测试会比在这里询问.....
Michael
Surely testing it yourself will be quicker than asking here.....
Michael
这篇关于属性(net1.1)需要快速回答的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!