1
旧的System.ComponentModel
提供了一个DefaultValueAttribute
,它应用于某个属性时,将其标记为在Windows窗体设计器等工具中具有默认值。为InArgument提供默认值<T>
在WPF/Workflow Foundation世界中是否存在等价的属性?以下内容不能按预期工作:
[DefaultValue('|')] // From System.ComponentModel
public InArgument<char> ColumnSeparator { get; set; }
WPF设计器忽略此属性声明。