G
Guest
Can you use the DefaultValueAttribute on Decimal PropertyFields? If so what
is format for setting the Default value.
Thanks...
Example
/// <summary>
/// Field: increment value
/// </summary>
private decimal increment;
/// <summary>
/// Property: Gets or Sets the increment value
/// </summary>
[Bindable(true)
,Browsable(true)
//,DefaultValue(1.0m)
,Category("Incrementing")]
public decimal Increment
{
[DebuggerStepThrough()]
get
{
return increment;
}
[DebuggerStepThrough()]
set
{
increment = value;
}
}
is format for setting the Default value.
Thanks...
Example
/// <summary>
/// Field: increment value
/// </summary>
private decimal increment;
/// <summary>
/// Property: Gets or Sets the increment value
/// </summary>
[Bindable(true)
,Browsable(true)
//,DefaultValue(1.0m)
,Category("Incrementing")]
public decimal Increment
{
[DebuggerStepThrough()]
get
{
return increment;
}
[DebuggerStepThrough()]
set
{
increment = value;
}
}