Yes, the OP did specifically mention c#, so we’re in the rarefied heights of managed code, rather than the nuts & bolts underbelly of C/C++ 
But I do take your point that with C/C++ we’d need to worry much more about the library that we’re talking to (I’ve spent a lot of time dealing with “DLL Hell”, its not a fun place to be. Even worse of you have to switch libraries for the “sim of the day”).