c# - Is implicitly casting objects via function parameters expensive? -
is implicitly casting objects via function parameters expensive?
for example
class myclass : iclass
and function takes iclass instead give myclass variable.
myfunction(iclass myclass) {} myclass test = new myclass() myfunction(test);
is performance hindering normal casting?
edit:
i edited case compile, sorry. how now?
Comments
Post a Comment