© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. GladstoneC++ Software Interoperability for Windows Programmershttps://doi.org/10.1007/978-1-4842-7966-3_4

4. C# Clients: Consuming the Managed Wrapper

Adam Gladstone1  
(1)
Madrid, Spain
 

Introduction

In this chapter, we look at consuming StatsCLR, the C++/CLI component we have built in the previous chapter. To some extent, we have done this already with the StatsCLR.UnitTests testing module. However, in this chapter, we take a broader look at using the component in a variety of different contexts.

Our first application is a plain C# console application. When looking at how we might use a wrapper component, we have three main objectives. Firstly, we want to ...

Get C++ Software Interoperability for Windows Programmers: Connecting to C#, R, and Python Clients now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.