//使用显示名称初始化 System.ComponentModel.DisplayNameAttribute 类的新实例。 displayName 显示名称
[DisplayName("weight")]
//初始化默认值 System.ComponentModel.DefaultValueAttribute 类的实例。支持所有类型,如字符串string,double,long,int,object,type,等等
[DefaultValue(100)]
public int Weight { get; set; }

 

相关文章:

  • 2022-02-06
  • 2021-05-21
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案