S
steve bull
if I have a property something like :
[DefaultValue(0)]
public int Width
{
get {return m_width}
set {m_width = value}
}
As a calling program/routine how can I set m_width back to it's default value 0 without knowing that it is 0
i.e. something like this.Width = Width.DefaultValue rather than this.Width = 0
Thanks,
Steve
[DefaultValue(0)]
public int Width
{
get {return m_width}
set {m_width = value}
}
As a calling program/routine how can I set m_width back to it's default value 0 without knowing that it is 0
i.e. something like this.Width = Width.DefaultValue rather than this.Width = 0
Thanks,
Steve