[Mono-dev] Constructor implementation obligation via interface?
Ympostor
ympostor at clix.pt
Wed May 24 07:48:21 EDT 2006
I have a question about C# 2.0:
If I want the compiler to show an error if a class A does not implement
the function void B(), I can make an interface that contains this method
and make class A inherit from that interface.
But, how can I do it if I want the compiler to show an error if class A
doesn't have an empty constructor. Can this be controlled statically?
Thanks in advance.
--
More information about the Mono-devel-list
mailing list