zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2k stars 592 forks source link

Add typed proxy factory methods to C# #2315

Closed bernardnormier closed 2 weeks ago

bernardnormier commented 2 weeks ago

This PR adds one typed factory method (ice_oneway).

If it's approved, I'll add all factory methods (and doc-comments) in a follow-up PR.

Note that C# currently does not allow covariant return types for interface methods. Only for class methods.

bernardnormier commented 2 weeks ago

Unfortunately this doesn't work with inheritance - even single inheritance. The call to ice_oneway is ambiguous.