本文介绍了如何在.net中的类的每个属性中附加附加信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个业务实体.
我想在每个属性中存储其他信息
公共 class BE { double REDEMP_FEE_MONTH { get ; 设置; } double ADMINISTRATOR_FEE_BREAKPNT { get ; 设置; } double ADMINISTRATOR_FEE_PCT { get ; 设置; } double ADVISORY_FEE_BREAKPNT { get ; 设置; } double ADVISORY_FEE_PCT { get ; 设置; } double SERVICE_FEE_BREAKPNT {获取; 设置; } double SERVICE_FEE_PCT { get ; 设置; } double TRANSFER_AGENT_FEE_BREAKPNT { get ; 设置; } double TRANSFER_AGENT_FEE_PCT { get ; 设置; } double CUSTODIAN_FEE_BREAKPNT { get ; 设置; } double CUSTODIAN_FEE_PCT { get ; 设置; } double REDEMP_FEE_PCT { get ; 设置; } double DISTRIBUTION_12B_FEE { get ; 设置; } 字符串 FUND_STREET {获取; 设置; } 字符串 FUND_CITY { get ; 设置; } 字符串 FUND_STATE { get ; 设置; } 字符串 PHONE_TOLLFREE {获取; 设置; } 字符串 URL {获取; 设置; } double BROKER_COMM_AMOUNT { get ; 集;} }
我想为每个这些属性保留两个附加值"StartOffSet"
和"EndOffSet"
,类型为int
.
可以帮忙一下吗.
谢谢,
HN Mishra
解决方案
I want to create a business entity.
I want to store additional information with each property
public class BE { double REDEMP_FEE_MONTH { get; set; } double ADMINISTRATOR_FEE_BREAKPNT { get; set; } double ADMINISTRATOR_FEE_PCT { get; set; } double ADVISORY_FEE_BREAKPNT { get; set; } double ADVISORY_FEE_PCT { get; set; } double SERVICE_FEE_BREAKPNT { get; set; } double SERVICE_FEE_PCT { get; set; } double TRANSFER_AGENT_FEE_BREAKPNT { get; set; } double TRANSFER_AGENT_FEE_PCT { get; set; } double CUSTODIAN_FEE_BREAKPNT { get; set; } double CUSTODIAN_FEE_PCT { get; set; } double REDEMP_FEE_PCT { get; set; } double DISTRIBUTION_12B_FEE { get; set; } string FUND_STREET { get; set; } string FUND_CITY { get; set; } string FUND_STATE { get; set; } string PHONE_TOLLFREE { get; set; } string URL { get; set; } double BROKER_COMM_AMOUNT { get; set;} }
I want to keep two additional values "StartOffSet"
and "EndOffSet"
of type int
for each of these properties.
Can some one help.
Thanks,
H N Mishra
解决方案
这篇关于如何在.net中的类的每个属性中附加附加信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!