Cross-Platform Object-Oriented Interoperability Between C# and C++
summary
Presents an alternative to C++/CLI and P/Invoke for cross-platform, object-oriented interop between C# and C++. Describes a bidirectional interface-based bridge that lets both C# and C++ classes implement shared interfaces, uses reference-counted memory management, and reuses established technologies and principles. The solution is already used in the Avalonia project to connect C#, C++ and Objective-C across platforms without relying on Windows-only or patched runtimes.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 10:38C# and C++ interoperability issues
- 22:05Memory management and delegates
- 33:17Interface-based solution
- 47:10Practical examples
- 57:39Q&A
related talks
39mC# for C++ programmers, C# basics, C# vs. C++
29mWorking with C and C++ in Apple environment
57mPushing C# to the limit
33mC# and Wasm Interface Types: Hands Across the C
01h 03mCLANG + C2 - Engineering/Futures/Measurements
44mC++, iOS, Android — Writing Cross‑Platform Applications
41mCrossplatform 2019: C ++ as an antagonist in a progressive world
01h 08mWindows, Macos & the Web: Lessons From Cross-Platform Development
