D
Daylor
hi.
im using option strict on.
im doing in ,from the simple reason ,to be warn when there are implict
conversion like string to int ,int to string.
BUT.
the price ,(now i see ), is very bad.
if i have class CCar and interface ICar
when im doing this :
ICar = new CCar
i get compiler error,because the option strict on.
i thought ,the compiler can "see", the ccar is implementing ICar, just for
this reason to do : ICar = new CCar.
the question :
is there a middle way (im not talking about explicit converstion of class to
interface ) ,so the option strict will be ON, but implict coversion between
class and interface will not generate compile error ?
im using option strict on.
im doing in ,from the simple reason ,to be warn when there are implict
conversion like string to int ,int to string.
BUT.
the price ,(now i see ), is very bad.
if i have class CCar and interface ICar
when im doing this :
ICar = new CCar
i get compiler error,because the option strict on.
i thought ,the compiler can "see", the ccar is implementing ICar, just for
this reason to do : ICar = new CCar.
the question :
is there a middle way (im not talking about explicit converstion of class to
interface ) ,so the option strict will be ON, but implict coversion between
class and interface will not generate compile error ?