Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NoDefault Equivalent in .NET
Message
 
À
14/01/2009 14:20:28
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, Afrique du Sud
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01373673
Message ID:
01374016
Vues:
19
There isn't as simple an equivalent as in vfp.

There are some minor variations depending on the .net language.

In C# for example the method you want to override has to be 'virtual' (Overridable in vb) in the parent (base) class otherwise the compiler generates an error.

Like this:

public class aBaseClass

{

public virtual void DoSomething()

{

//doing something
}

}



public class anotheClass : aBaseClass
{
public override void DoSomething()


{

//doing something else

}

}



>HI All
>
>Is there an equivalent to the VFP NoDefault command in .NET ?
>Or is one forced into the paradigm of Overides Methods ?
>
>
>TIA
Mathias Banda

Time is longer than a rope.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform