Default Code for a Custom Property

Listing 1. The code for a custom property on a Web Part from the Visual Studio add-in Web Part template.

. . .
private const string defaultText = "";
private string text=defaultText;

[Browsable(true),Category("Miscellaneous"),
DefaultValue(defaultText),
        WebPartStorage(Storage.Personal),
FriendlyName("Text"),Description("Text Property")]
public string Text
{
        get
        {
                return text;
        }

        set
        {
                text = value;
        }
}
. . .