Say, I have an interface
public interface ISomeControl
{
Control MyControl { get; }
...
}
Is it possible to define something like this:
public static implicit operator Control(ISomeControl ctrl)
{
return ctrl.MyControl;
}
Or rather why can't I do that in C#?