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
Post a Comment