, , : .
, , , - , , . , :
IMyInterface interface = new MyClass();
MyClass theClass = (MyClass)interface;
interface.PrintOpt();
theClass.PrintOpt();
( #):
interface.PrintOpt(false);
theClass.PrintOpt(true);
" " " " IL - .
, , . , , , (, null default(int?)), . #, - COM VB , . , , -
comInterface.MyMethod(TheActualArgumentICareAbout, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, ...);
comInterface.MyMethod(argument, anotherSuperUseful: true);
- - , . , , - . , const. null , , "" , ( public static readonly of const, , enum).