If you want to stop people instantiating the class this is only going to sort of work
public class Foo : MyFunctions
{
}
MyFunctions f = new Foo();
this will construct your class when the derived one constructs.
To stop anyone constructing just create a provate default constructor
public class MyFunctions
{
private MyFunctions(){}
...
}
In Whidbey we get the concept of a static class from which teh compiler emits a sealed abstract class.
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<#s**************@TK2MSFTNGP11.phx.gbl>
hi Keith
the following code is doing what you want.
make an abstract class so nobody can make instances from it!
make every method in this class static so you dont have to instance an
object of this class for using its methods.
--- CODE ---
public abstract class MyFunctions
{
public static void func1()
{
}
public static int func2(string something)
{
MyFunctions.func1();
}
}
cheers, jazper
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
[microsoft.public.dotnet.languages.csharp]