c# - Method with a return type that implements multiple interfaces -


currently have following:

interface imyinterfacereturntype : ienumerable<string>, idisposable { }  interface imyinterface {     imyinterfacereturntype myinterfacemethod(); } 

is there way can alter method signature of myinterfacemethod() such can express return object both ienumerable , disposable without creating intermediate interface? say:

interface imyinterface {     ienumerable<string>, idisposable myinterfacemethod(); } 

this can done generics:

interface imyinterface<t> t :ienumerable<string>, idisposable  {     t myinterfacemethod(); } 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -