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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -