Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding property set/get
Message
De
03/02/2004 14:53:02
 
 
À
03/02/2004 14:32:25
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00873482
Message ID:
00873570
Vues:
18
>Kewl ... and is that the way you had to do it? (virtual property, overridden in subclass?)

Yep, intellsense set's it up for you... basically all you type

public override

it gives you a list of the virtual methods and properties in the parent. You choose the property and it writes this code for you:
public override string Variable
{
	get
	{
	        return base.Variable;
	}
	set
        {
		base.Variable = value;
	}
}
From there it was pretty self-explainatory.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform