Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Force class to implement a shared function

$
0
0
Hi

I want a class to implement a particluar shared (static for C# fans) method. I can check it does at run time using reflection but is there anything I can do at compile time?

I can't define a shared fnction on an interface, nor can I mark a shared function as "MustOverride" on a class.

Any thoughts?

Thanks
Duncan

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>