interface ILol
{
void LOL();
}
class Rofl : ILol
{
void ILol.LOL()
{
GlobalLOLHandler.RaiseROFLCOPTER(this);
}
public Rofl()
{
//Is there shorter way of writing this or i is there "other" problem with implementation??
(this as ILol).LOL();
}
}
interface ILol { void LOL(); } class Rofl : ILol { void ILol.LOL() {
Share
You’ve implemented the interface explicitly which, in general, you don’t need to do. Instead, just implement it implicitly and call it as you would any other method:
(Note your implementation will also need to be public.)